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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-08-27 : 07:55:48
|
| Aldo writes "I got a Stored Procedure which useses PRINT-Statements. I call the procedure in a DTS and want to write the output of the prints in a File. How can I do that? I am not the owner of the procedure. Here is a part of the procedure:...WHILE @@FETCH_STATUS = 0BEGIN SET @stmt1 = 'EXEC sp_delete_job @job_name = ''bck_tlog_'+@dbname+'''' SET @stmt2 = 'EXEC sp_delete_job @job_name = ''bck_full_'+@dbname+'''' SET @dbtitle = '-- '+@dbname PRINT '' PRINT @dbtitle PRINT @stmt1 PRINT @stmt2 FETCH NEXT FROM cur_dbname INTO @dbnameEND..." |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-08-27 : 09:12:23
|
| Print statements just fill the output buffer which isn't easily accessible. They are not a good thing to have inside an sp.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|