Solved

Syntax for Setting 'Recovery_Option'

Posted on 2002-07-16
3
1,293 Views
Last Modified: 2012-06-21
I am having trouble with the syntax to set the 'Recovery_Option' on a database. It is
currently set at 'simple' and I need to
change it to 'full'.

I am looking at the help file, but I am very
poor at understanding the correct syntax from
it. Here is what I have. (It doesn't work.)

alter database SqlTest  SET 'recovery_option' = recovery full

What should it be?

Thanks
0
Comment
Question by:bjames
  • 2
3 Comments
 
LVL 32

Accepted Solution

by:
bhess1 earned 100 total points
ID: 7157801
Your Alter statement is incorrect.  Try:

ALTER DATABASE SqlTest SET RECOVERY FULL
0
 
LVL 32

Expert Comment

by:bhess1
ID: 7157802
BTW, Here is a good link to an article about the recovery options:

http://www.sqlmag.com/Articles/Index.cfm?ArticleID=8551
0
 

Author Comment

by:bjames
ID: 7157837
Thanks. I hate revealing my ignorance and stupidity, but its better than getting something wrong.

Thanks
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question