tags:

views:

138

answers:

1

I want to bulk export from a select table, all columns that match a listbox and from only rows that match listings in a text file.

Any help? I'm sure someone has done this.

+2  A: 

You can use the SqlBulkCopy class.

Read some examples here

I have experience with the command line version bcp.exe. It is the fastest, most efficient way to export from your database.

Ryu
does the SBC export to a text file?
Mike
I'm way to new without seeing an example code.
Mike
I can't seem to find a way to export directly to text file from SqlBulkCopy. If you exec bcp.exe you definatly can.
Ryu