Improve company productivity with a Business Account.Sign Up

x
?
Solved

Syntax for Setting 'Recovery_Option'

Posted on 2002-07-16
3
Medium Priority
?
1,319 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:
Brendt Hess earned 400 total points
ID: 7157801
Your Alter statement is incorrect.  Try:

ALTER DATABASE SqlTest SET RECOVERY FULL
0
 
LVL 32

Expert Comment

by:Brendt Hess
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

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to shrink a transaction log file down to a reasonable size.

589 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