How can I tell if a SQL Server database is being backed up

Posted by Guy on Stack Overflow See other posts from Stack Overflow or by Guy
Published on 2010-06-10T20:41:49Z Indexed on 2010/06/10 20:52 UTC
Read the original article Hit count: 170

Filed under:
|

Is there a way to programmatically determine if a SQL Server backup is currently being performd on a particular database?

We have automated database backup scripts for both data and log files, where the databases are backed up nightly and log files are backed up every 15 minutes, 24 hours a day. However, we think that the log file backup job is failing if it runs the same time as the full backup is being run.

What I'd like to do is to make a change to my transaction log script to not run a transaction log backup while the full backup is being run.

If there a DMV or a system table that I can query and work this out?

© Stack Overflow or respective owner

Related posts about backup

Related posts about SQLServer