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 |
bryan42
Starting Member
28 Posts |
Posted - 2011-11-11 : 10:32:46
|
If a some jobs exist on a database server, how does one use TSQL to schedule them and add e-mail notification upon job failure?I'm implementing the Hallengren scripts for database maintenance on many servers and would prefer to use TSQL instead of the GUI. |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-11-11 : 10:43:48
|
you can use sp_add_jobschedule to add schedule to a joband sp_add_notification for adding notification------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|