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

Re: Dump DataTable to text by Miha

Miha
Wed Jan 21 03:22:14 CST 2004

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" <anonymous@discussions.microsoft.com> wrote in message
news:2AECAED7-884E-492F-A463-3DD589EC62FD@microsoft.com...
> 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.
>
> Diva
>