title: Querying results of a stored procedure
body: <p>I have a stored procedure that returns a large number of results, and would like a better way to debug/ parse the results than copy/pasting into excel or whatever - is there a way to pass the results of the procedure into a query?  e.g., if the procedure call was something like:</p>
  
  <pre><code>exec database..proc 'arg1','arg2','arg3'
  </code></pre>
  
  <p>my thought was to do something like:</p>
  
  <pre><code>select distinct column1 from 
  (exec database..proc 'arg1','arg2','arg3')
  </code></pre>
  
  <p>which clearly did not work, or I wouldn't be here.  If it matters, this is for a sybase database.</p>
  
  <p>Thanks!</p>