Is there a way to programmatically determine if SQL Server is currently backing up to a specific database?
We have automated database backup scripts for data files and logs, where databases are backed up at night and log files are backed up every 15 minutes, 24 hours a day. However, we believe that the log file backup job does not work if it runs at the same time that the full backup is in progress.
What I want to do is make changes to the transaction log of the script so as not to start the backup of the transaction log when performing a full backup.
If there is a DMV or system table, which can I query and execute this?
source
share