Groups | Blog | Home
all groups > sql server (alternate) > august 2003 >

sql server (alternate) : Writing to a text file from a database query.


Stefan
8/14/2003 4:42:12 PM
I need to just back one table and not all the data in the table. Is there a
way to have SQL save the data return from a query to some text file that I
can then use to build the table in another table on another server?

I am SQL server 7

Thanks,

S

sql NO[at]SPAM hayes.ch
8/15/2003 12:27:26 AM
[quoted text, click to view]

There are several different options - osql.exe, bcp.exe, or DTS. bcp
is commonly used for this task.

AddThis Social Bookmark Button