title: Generate "select Statement" output as text formate using VB.NET
body: <p>I am a novice to VB.net, and am trying to write a small program that saves the output of a <code>SELECT</code> into a text file. I am using SQL Server.</p>
  
  <p>For example, consider the statement </p>
  
  <pre><code>   SELECT * FROM EMPLOYEE;
  </code></pre>