Groups | Blog | Home
all groups > sql server mseq > october 2005 >

sql server mseq : create log file for a scrip


Lee Ann
10/6/2005 10:06:16 AM
I'm am new to using SQL Server. In Oracle, when I create scripts to
manipulate data, I have a log file automatically created from within the
script by issuing the SPOOL command. Is there a similar functionality in SQL
Hari Prasad
10/7/2005 12:00:00 AM
Hi,

USE OSQL and redirect the output to a text file.

OSQL -USA -Ppassword -SServer -iC:\script.SQL >c:\log.txt

Thanks
Hari
SQL Server MVP

[quoted text, click to view]

Lee Ann
10/11/2005 7:05:05 AM
Thanks Hari

[quoted text, click to view]
AddThis Social Bookmark Button