Dump DataTable to text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I dump my datatable to a comma delimited (or tab delimited) text file in VB.NET?

I was thinking I could simply call an (external) SQL 2000 DTS package, but since I have the data in the Datatable, it would be a waste to requery.

Div
 
Hi Diva,

You might consider a simple loop through all rows and write directly to
file..

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

Diva said:
How can I dump my datatable to a comma delimited (or tab delimited) text file in VB.NET?

I was thinking I could simply call an (external) SQL 2000 DTS package, but
since I have the data in the Datatable, it would be a waste to requery.
 
Back
Top