![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I obtained a return value from a store procedure. What T-SQL command can help me to write this return value into a .txt file on hard drive? Thanks for help. -Tom |
#3
| |||
| |||
|
|
Hi, Execute the stored procedure from command prompt, osql -U user -P password -S Servername -d databse name -Q "Procedure name wirh parameters" -o "c:\sp_result.txt" -n This command will redirect the output of procedure to sp_result.txt in c drive of SQL Server. Thanks Hari MCDBA "Tom Torain" <TST_MC (AT) hotmail (DOT) com> wrote in message news:c1e101c3ee70$c4247fa0$a101280a (AT) phx (DOT) gbl... I obtained a return value from a store procedure. What T-SQL command can help me to write this return value into a .txt file on hard drive? Thanks for help. -Tom |
![]() |
| Thread Tools | |
| Display Modes | |
| |