SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Figure out recovery mode for each database

By Michael Zhang,

SELECT name AS [Database Name],CONVERT(varchar(10),create_date,111) as [Create Date],
recovery_model_desc AS [Recovery Model]
FROM sys.databases

order by [Create Date] desc,[Recovery Model] desc
GO

-- Run following to set a database's recovery mode to "Full":

Use Master;
go

ALTER DATABASE [put database name here] SET RECOVERY FULL
GO

Total article views: 611 | Views in the last 30 days: 2
 
Related Articles
FORUM

recovery model

recovery model

FORUM

recovery model

Are you allowed to set a user database in full recovery model if the model database is in simple mod...

FORUM

Changing recovery model

Impact on changing recovery model in SQL Server online database.

BLOG

SQL Server Recovery Models

A SQL Server database can be in one of three recovery models. FULL, BULK_LOGGED and SIMPLE. The reco...

BLOG

Recovery Models

In SQL Server we have three basic recovery models: full, bulk-logged, and simple. By default we find...

Tags
backups    
database    
recovery mode    
 
Contribute