Nice simple queries to list all databases with recovery models
SQL Server 2000
SELECT name,DATABASEPROPERTYEX (name, 'Recovery')
FROM sysdatabases
WHERE category IN ('0', '1','16')
If you want to limit results
AND DATABASEPROPERTYEX (name, 'Recovery') = 'SIMPLE'
SQL Server 2005+
SELECT name AS [Database Name],
recovery_model_desc AS [Recovery Model]
FROM sys.databases
If you want to limit results
WHERE recovery_model_desc = 'SIMPLE'
Search This Blog
Tuesday, February 14, 2012
Subscribe to:
Post Comments (Atom)
sql database recovery tool damaged .mdf files after using unstable software, hard drive fails, system errors. Utility restores tables, procedures and etc. items. It is compatible with any software configuration of your PC.
ReplyDelete