Link to home
Start Free TrialLog in
Avatar of Jimbo99999
Jimbo99999Flag for United States of America

asked on

VB.Net - Output SQL Query Results to CSV File

Good Day Experts!

I have little project here that seems pretty straightforward.  I need to query a SQL Server database and get a resultset(not sure whether I am going to use a DataReader or DataTable).
When I loop through the results, I need to write each record to a CSV file.  

I have not done this before so I have searched the net and found differing iterations.
Do you have any recommended reference sites that I could check out?

Thanks,
jimbo99999
SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jimbo99999

ASKER

Excellent information. I have it working now!