Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing SQL Server 2008 recovery mode

Does anyone have t-sql to change the recovery mode of a database to simple?

We are changing our backup strategy so now I need to bulk change many databases from Full recovery mode and would prefer not to do this one at a time in SSMS.

like image 504
Avitus Avatar asked Apr 24 '11 14:04

Avitus


2 Answers

ALTER DATABASE [DatabaseName] SET RECOVERY SIMPLE WITH NO_WAIT
like image 117
Daniel Renshaw Avatar answered Oct 18 '22 12:10

Daniel Renshaw


use [database_name]
alter database  [database_name]
set recovery simple
like image 27
pikasat Avatar answered Oct 18 '22 10:10

pikasat