Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Set recovery option to full using a SQL command.

Author  Topic 

qman
Constraint Violating Yak Guru

442 Posts

Posted - 2010-09-22 : 10:46:31
How can I set database recovery option to full using a SQL command? I have a need to switch between simple and full via a job using SQL.


Thanks
Qman

robvolk
Most Valuable Yak

15732 Posts

Posted - 2010-09-22 : 11:09:32
ALTER DATABASE myDB SET RECOVERY FULL
ALTER DATABASE myDB SET RECOVERY SIMPLE
Go to Top of Page

qman
Constraint Violating Yak Guru

442 Posts

Posted - 2010-09-22 : 11:10:40
Thanks!
Go to Top of Page
   

- Advertisement -