February 5, 2013 at 2:12 pm
All,
If you have 10 databases mirrored and if you only failing over 5 of them....you only need to disable the jobs related to that databases that you are failing over.....so, how can you get that list of jobs using t-sql. Please advise.
Thanks,
SueTons.
Regards,
SQLisAwe5oMe.
February 5, 2013 at 2:17 pm
Check out sysjobs and sysjobsteps in the msdb database.
February 5, 2013 at 3:23 pm
JeremyE (2/5/2013)
Check out sysjobs and sysjobsteps in the msdb database.
Does anyone have any script for this?....Basically, I am looking for a script to get all the jobs with job names for a particular database and with execute command to disable those jobs....so, that I can copy the output and execute to disable them before I failover the database. Hope my requirement is clear.
SueTons.
Regards,
SQLisAwe5oMe.
February 5, 2013 at 4:38 pm
JeremyE was trying to teach you something new, Sue. Take a look at the two tables he recommended and you'll see how easy it is to do. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply