Solved

'alter database <dbname> set recovery full

Posted on 2007-03-27
2
2,340 Views
Last Modified: 2008-02-01
'alter database <dbname>set recovery full

get a syntax error near keyword SET. There are several users in the database. Can I execute this statement while other users are in the database? Any other way to set this option?
0
Comment
Question by:chas1994
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 18798998
what version of SQL Server are you using?
the syntax you show looks fine, however do you have a space between  the database name and the keyword SET?
how do you run the statement?

>Can I execute this statement while other users are in the database?
yes

>Any other way to set this option?
yes:
exec sp_dboption 'dbname', 'trunc. log on chkpt.', 'false'

0
 
LVL 11

Expert Comment

by:Ved Prakash Agrawal
ID: 18799183
YES you can execute above command while other user are working in the database.

there is no issue with the syntax.

ALTER DATABASE NORTHWIND SET RECOVERY FULL

check you have rights to change recovery model or not.
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.

Question has a verified solution.

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

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…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

896 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

13 Experts available now in Live!

Get 1:1 Help Now