title: SQL Server return StmtText when EXEC a SELECT query
body: <p>I have a problem with this when I try to Execute a simple Select Query. That I SELECT and it return the statement Text. But I expected it return a table. How can I did it?</p>
  
  <p><strong>query</strong>: </p>
  
  <pre><code>SELECT * FROM dbo.R81BARCODE
  </code></pre>
  
  <p><strong>result</strong>: </p>
  
  <pre><code>StmtText
  -----------------------------
  SELECT * FROM dbo.R81BARCODE
  
  (1 row(s) affected)
  
  StmtText
  ------------------------------------------------------------------------------------
    |--Clustered Index Scan(OBJECT:([R50THIENAN].[dbo].[R81BARCODE].[PK_R81BARCODE]))
  
  (1 row(s) affected)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/m2Tbd.png" alt="ERROR"></p>