SQL SERVER –Different Ways to Find Recovery Model for Database
This is a very easy method and it gives all the database information in one script.
SELECT name AS [Database Name],
recovery_model_desc AS [Recovery Model] FROM sys.databases
GO
Method 4
This method provides only one database at a time.
SELECT 'ADVENTUREWORKS' AS [Database Name],
DATABASEPROPERTYEX('ADVENTUREWORKS', 'RECOVERY')
AS [Recovery Model] GO
My recommendation
Comments
Post a Comment