11-17-2010 03:06 PM
does anyone have a SQL query that will return the backup warning data from the "Status" section of the VAC such as:
Directory database log backup
Vault Store fingerprint database log backup
Vault Store transaction log backup
etc?
Solved! Go to Solution.
11-18-2010 07:32 AM
The following retrieves the database name and last backup of the Databases
SELECT database_name, MAX(backup_finish_date) "Last Database Backup"
FROM msdb.dbo.backupset
WHERE database_name IN ('EnterpriseVaultAudit', 'EnterpriseVaultDirectory', 'EnterpriseVaultMonitoring', 'EVVSGDefaultUpgradeGroup_1_1', 'yourVaultDB')
AND type = 'd'
GROUP BY database_name
The following retrieves the database name and last backup of the Log files
SELECT database_name, MAX(backup_finish_date) "Last Log File Backup"
FROM msdb.dbo.backupset
WHERE database_name IN ('EnterpriseVaultAudit', 'EnterpriseVaultDirectory', 'EnterpriseVaultMonitoring', 'EVVSGDefaultUpgradeGroup_1_1', 'yourVaultDB')
AND type = 'l'
GROUP BY database_name
11-17-2010 03:22 PM
Turn on SQL profiler, and run an "update on the vac" and you will see what its doing.
11-18-2010 07:32 AM
The following retrieves the database name and last backup of the Databases
SELECT database_name, MAX(backup_finish_date) "Last Database Backup"
FROM msdb.dbo.backupset
WHERE database_name IN ('EnterpriseVaultAudit', 'EnterpriseVaultDirectory', 'EnterpriseVaultMonitoring', 'EVVSGDefaultUpgradeGroup_1_1', 'yourVaultDB')
AND type = 'd'
GROUP BY database_name
The following retrieves the database name and last backup of the Log files
SELECT database_name, MAX(backup_finish_date) "Last Log File Backup"
FROM msdb.dbo.backupset
WHERE database_name IN ('EnterpriseVaultAudit', 'EnterpriseVaultDirectory', 'EnterpriseVaultMonitoring', 'EVVSGDefaultUpgradeGroup_1_1', 'yourVaultDB')
AND type = 'l'
GROUP BY database_name
11-18-2010 07:51 AM
+1 for wayne for the cool tip about running profiler to see what's going on
solution goes to JW this time.