Simulating recovery of a database damaged by a crash over on Paul S Randal's blog...
http://www.sqlskills.com/blogs/paul/CategoryView,category,CHECKDB%2BFrom%2BEvery%2BAngle.aspx
Showing posts with label recovery mode. Show all posts
Showing posts with label recovery mode. Show all posts
Friday, 29 August 2008
Thursday, 3 August 2006
Dynamic SQL to set all databases to Simple recovery mode
-- Dynamic SQL to set all databases to Simple recovery mode
-- set all to simple
-- use this sql to generate to sql to perform this task.
use master
SELECT 'ALTER DATABASE [' + name + '] SET RECOVERY SIMPLE' from master..sysdatabases where name not in ('master','model','msdb','tempdb')
Subscribe to:
Posts (Atom)