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)
 output query results to .csv file

Author  Topic 

SQLboston
Starting Member

3 Posts

Posted - 2006-08-24 : 21:22:17
How do I output query results from within a stored procedure to a '.csv' format? i.e.,

select *
from employees
output .... c:\test.csv

timmy
Master Smack Fu Yak Hacker

1242 Posts

Posted - 2006-08-24 : 21:50:17
There are many ways to do it.

I'd have a look at DTS Packages or a bcp command-line task.

Depends on where you want to access it....
Go to Top of Page
   

- Advertisement -