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
 General SQL Server Forums
 New to SQL Server Programming
 output in notepad

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-03-25 : 00:32:51
hi friends,
Can any one tell how to save the O/P to notepad.@tmp variable output need to be stored in notepad

Create procedure testing
as
begin
set nocount on

--open cursor
print @tmp
--close cursor

set nocount off

pravin14u
Posting Yak Master

246 Posts

Posted - 2008-03-25 : 01:00:50
Some thing like this?

http://www.motobit.com/tips/detpg_SQLWrFile/
Go to Top of Page

PeterNeo
Constraint Violating Yak Guru

357 Posts

Posted - 2008-03-25 : 01:14:39
check the link

http://www.simple-talk.com/sql/t-sql-programming/reading-and-writing-files-in-sql-server-using-t-sql/
Go to Top of Page
   

- Advertisement -