SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


If MSDB is in Recovery, will SQL Agent Jobs still execute?


If MSDB is in Recovery, will SQL Agent Jobs still execute?

Author
Message
jasona.work
jasona.work
SSCarpal Tunnel
SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)

Group: General Forum Members
Points: 4006 Visits: 11728
This morning I came in, and it seems that my boss had power cycled one of our SQL Servers this morning because certain applications with SQL backends "weren't working." Since then, MSDB has been in recovery, and according to the SQL error.log, it's going to be around another 12hrs before it finishes (MSDB is about 170GB, mostly because of a never cleaned out sysmail_Mailitems table.)

My question is, while MSDB is in recovery, will any scheduled Agent Jobs run, or is the Agent down until MSDB finishes recovery?

As for why sysmail_mailitems was never cleaned out (it's got entries dating back to 2007 or so,) it's because we didn't realize DB Mail kept entries like that (accidental DBA) and just found out last week (when I was trying to figure out WHY MSDB was so large.) I had started a Job to purge sysmail (using the built-in SP,) which may have been consuming enough resources to slow the whole thing down, and caused this (I'm going to resetup the Job when I can, and have it do one year, then re-run the next night doing the next year, and so on.)

Thanks,
Jason A.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)SSC Guru (86K reputation)

Group: General Forum Members
Points: 86697 Visits: 45254
Agent will be down until MSDB is back online. All the job definitions, schedules, history, etc are in MSDB.

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


jasona.work
jasona.work
SSCarpal Tunnel
SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)SSCarpal Tunnel (4K reputation)

Group: General Forum Members
Points: 4006 Visits: 11728
Thank you Gail! That's what I was thinking would be the case, but couldn't find anything to confirm it with a quick Google...

Jason
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search