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
 Import/Export (DTS) and Replication (2000)
 Writing retrun values to a file

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-05-06 : 08:17:38
Nides writes "Hi,

I'm a newbie at SQLServer. I was wondering if it were possible to write the return values of a stored procedure to a text file. The PRINT command does not have the parameter to place where the file (or output) would be.

If its not possible, what are my alternatives aside from inserting the output to a table and querying it back.

I hope you could enlighten me.

Thanks a bunch,
Nides"

mfemenel
Professor Frink

1421 Posts

Posted - 2005-05-06 : 13:33:03
You could capture the return values in your sp and use the file system object to write them to the file. I think you could also just bcp it out

Mike
"oh, that monkey is going to pay"
Go to Top of Page
   

- Advertisement -