Solved

'alter database <dbname> set recovery full

Posted on 2007-03-27
2
2,359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

735 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