Solved

Syntax for Setting 'Recovery_Option'

Posted on 2002-07-16
3
1,294 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MS SQL Server connect issues 4 39
SSIS GUID Variable 2 33
Running Total Using new MS SQL Function 21 50
SQL 2012 Instance Problem 3 55
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

756 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