Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Export to CSV

Author  Topic 

petek
Posting Yak Master

192 Posts

Posted - 2008-08-06 : 05:44:28
Hi all is there a way to export data to a csv file from a t-sql query window.

I have data in a table which needs to be exported to a csv file.

I could use DTS but i want to make it automatic when user runs sql code.

basically :

CODE............
Begin
Some code
END

insert into some table.

export to csv file

can i call a dts package from here???

Kind Regards

Pete.

chandan_joshi80
Starting Member

30 Posts

Posted - 2008-08-06 : 08:45:09
You should try BCP utility

chandan Joshi
Go to Top of Page
   

- Advertisement -