title: How to combine stored procedure and select query result?
body: <p>I am trying to combine the results of <code>xp_cmdshell</code> with a select query.
  I have tried union &amp; read about creating a temp table, but as my result will be having only 1 column. To be more precise i need a smaller query to combine the results of <code>xp_cmdshell</code> with select query as am trying to use it in union based sql injection </p>
  
  <p>For example:</p>
  
  <pre><code>Select name from employee
  union
  exec xp_cmdshell 'whoami'
  </code></pre>
  
  <p>I know this wont work but somewhat similar would be great :)</p>