Some SQL Server Agent Jobs will not run after restore.

Recently we had a data drive containing our SQL databases fail and had to restore from backups. Everything is up and running fine except this problem with scheduled jobs.

We have some jobs scheduled to backup and perform maintenance on the databases. Those jobs run fine as scheduled.

However we have some DTS packages that are scheduled but will not run since the restore. I can run the packages maunally and they work fine, they just wont run as scheduled. When I try to start the scheduled job from within the management console they hang. I've tried stopping and startng the SQL Server Agent but that hasn't helped.

When you restored, did you restore the "master" database? Did you restore to a computer with the same extact name or a different name? Did you change the named instance of the SQL server (e.g. default to something). Usually this type of failure points to a restore of the master to a different computer. The master database is sensitive to that. There are ways to fix it.

dquebe,
Thank You. Yes, that is exactly what we did. We could not restore to the target machine because SQL Server would not start and our backup solution (Symantec Backup Exec) runs on SQL. So we restored to a different machine and moved the files over. I don't believe the name of the SQL server has changed. So, how do we fix it?

The other issue is if you restored to another computer (even if the computer names at the same), the computer account and new local accounts (i.e. local administrator) will have different SIDs. These security references might need to be reset in master/msdb, but I have to keep looking around on that.

I had this problem once, and it came down to a small fix script to the master (it was computer name issue). I'll see if I can dig up how I did it.

Featured Post

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…