title: Convert SQL Query to vb.net
body: <p>Can help me to run the SQL Query in VB.NET .This is the query for converting table data in to csv</p>
  
  <pre><code>USE newdb 
   GO
   -- Check Table Column
   SELECT *
   FROM accountexample 
   GO
   -- Get CSV values
   SELECT SUBSTRING(
   (SELECT ' ' + s.BPl + ',' + s.Lo  + ',' + s.Ltion + ',' + s.Ite + ',' + s.HNO + ',' + s.QNo + ',' + s.Country + ',' + s.STATE + ',' + s.Rem + CHAR(10)
    FROM   accountexample s
   ORDER BY s.BPl
   FOR XML PATH('')),2,200000) AS CSV
   GO 
  </code></pre>