Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging Job status to a file

Status
Not open for further replies.

miq

Programmer
Apr 24, 2002
315
PK
hi,
exec xp_cmdshell 'echo job_status_msg_hehe > test.txt'

can be used to write to file name test.txt but how to allow multiple jobs append their success/failure status and other related custome messages to the file.

Basically, I want all jobs running in a day to log their status to a log/text file so, their status can be easily viewed -- ofcourse jobs will log custom messages containing other info too.

how to go about it?

 
haha

figured it out!

>> is the key to append data :D





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top