Identifying your Recovery Model

Identifying your recovery model is relatively simple and can be conducted in several ways. In this post I will illustrate the process of identifying your recovery model via the UI and with TSQL. Understanding the differences between the three model is important so here are some informative MSDN links that get pretty detailed in explaining each model.

Recovery Models: SimpleFullBulk-Logged.

Using the UI

Step 1:  Right click on the target database and select “Properties”

01.RightClickSelectProperties

Step 2: Select “Options”

02.SelectOptions

Step 3: Select the appropriate recovery model

03.ChooseRecoveryModel

As you can see it is very easy, but in order for you to determine the model for each database you would have to repeat these steps for each database. Not the most efficient way to spend your day. Now let’s get them all in one shot.

With TSQL

Step 1: From within the SQL Server Management Studio start a new query

04.NewQueryWindow

Step 2: Run the following statement

SELECT name
       ,recovery_model_desc
FROM sys.databases
ORDER by name

Here are the results

06.Results

Change Recovery Model via TSQL

Step 1: Run the following statement

ALTER DATABASE AdventureWorks
SET RECOVERY MODEL FULL -- FULL, SIMPLE, BULK_LOGGED

Here are the results after re-running the select statement

08.AlterResults

Advertisements