What is the RECOVERY MODEL for each database?
SELECT name [Database Name],
recovery_model_desc [Recovery Model]
FROM sys.databases
WHERE database_id > 4
GO
Backups... are they even being done? (oooh, I could tell you some stories...) This is a quick peek into msdb.dbo.backupsets, to return whatever you've got (FULL, DIFF, LOG), ordered by the backup date DESC.
SELECT sys.name [Database],bkup.backup_finish_date
[BackupDate],
Backups... are they even being done? (oooh, I could tell you some stories...) This is a quick peek into msdb.dbo.backupsets, to return whatever you've got (FULL, DIFF, LOG), ordered by the backup date DESC.
SELECT sys.name [Database],bkup.backup_finish_date
[BackupDate],
WHEN TYPE ='I' THEN 'DIFFERENTIAL'
WHEN TYPE ='L' THEN 'LOG' END [Type],
CEILING(bkup.backup_size/1048576) [Size (MB)],
SERVER_NAME,
USER_NAME [ByWhom]
FROM master.dbo.sysdatabases sys
LEFT OUTER JOIN msdb.dbo.backupset bkup
ON bkup.database_name = sys.name
ORDER BY backup_finish_date DESC;
There are many, many more, but that is typically where I start. Here are a couple more good ones. Please check them out and let me know if you have any questions.
- Security Confirm SQL login properties.
- Are you performing DBCC's ? Well, are you?
No comments:
Post a Comment