QSAC,
I may have a workaround for you.
The situation you've described has also arisen on our web/database-farm: One database seems to be blocking the succesfull database- and transaction log-backups of other databases. (Luckily, the DB itself remained online and responsive to the application.) This may or may not be important, but we use database replication on our site. Do you do as well?
In troubleshooting our installation, I have discovered the following:
- Manual backup of the offending DB works fine.
- Deleting the pull-subscriptions from the DB works fine, as do other maintenance
actions, such as shrinking the DB.
- When I remove the offending DB from the maintenance plan (A), plan A does
not hang anymore, and all remaining DB's in plan A will thereafter backup
succesfully.
- When I create a new plan (B) for the offending DB, it will still NOT backup
the DB or the T-Log.
- Detaching/Re-attaching the offending DB does not remedy the situation.
I tried this with both plans A and B.
- Detaching the DB, and moving it physically from server X to server Y, and
attaching it to that SQL-Server _did_ resolve the issue. Adding the newly
moved DB to an existing maintenance plan (C) on this machine worked fine
as well. All DB's in plan C continue to backup succesfully, including the
(previously) offending DB.
This last step may be a workaround for you, however it does not offer an explanation about why the problem arose in the first place. We've noticed SQL-Server going berserk on the processors (2 Hyperthreaded CPU's at 100%) prior to these problems, which left no option other than restarting the service. After that all seemed normal again, until the next daily backup started...
Seeing that a move of the physical MDF/LDF files to another machine creates a once more working DB, suggests to me that the problem may not lie in the DB itself but perhaps in the registration of the DB within the SQL/Server instance. If this is the case I fear more problems when we add another DB to server X.
Could anyone comment on this point?
Regards,
Stephen.