title: How can I make a stored procedure return a "dataset" using a parameter I pass?
body: <p>I'm very new to Stored Procedures.</p>
  
  <p>Say I have a IDCategory (int) and I pass that to a stored procedure. In normal-talk, it'd go:</p>
  
  <blockquote>
    <p>Find me all the listings with an
    IDCategory equal to the IDCategory I'm
    telling you to find.</p>
  </blockquote>
  
  <p>So it would find say 3 listing, and create a table with columns:</p>
  
  <p>IDListing, IDCategory, Price, Seller, Image.</p>
  
  <p>How could I achieve this?</p>