you're reading...
SQL Server

Find Out The Recovery Model For Your Database

So you want to quickly find out what the recovery model is for your database but you don’t want to start clicking and right-clicking in SSMS/Enterprise Manager to get that information. Here are some examples of how to get the recovery model for your database(s) via T-SQL. Replace ‘msdb’ with the database name of interest.


If you want it for all databases in one shot

SQL 2000:

SELECT name,DATABASEPROPERTYEX(name,’Recovery’) FROM sysdatabases


SQL 2005/2008:

SELECT name,recovery_model_desc  FROM sys.databases


About ldgaller

Accomplished Data Warehouse Architect, DBA and Software Architect with over 15 years of professional experience and demonstrated success designing and implementing solutions that improve business functionality and productivity. Highly diverse technical background with proven ability to design, develop and implement technology on an enterprise level. I approach all projects with passion, diligence, integrity, and exceptional aptitude.


No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: