Solved

Syntax for Setting 'Recovery_Option'

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now