Solved

Single mode SQL Instance

Posted on 2007-03-21
4
303 Views
Last Modified: 2012-08-13
how do we put an instance of a SQlServer(Customer) in single mode?
I did
c:\program files\Microsoft Sql server\MSSQL$Customer\BINN>sqlservr -m


I get this
   initerrlog: Could not open error log file 'd:\program files\microsoft sql server\MSSQL\log\ERRORLOG'. Operating system error =
32(The process cannot access the file because it is being used by another process

Any inputs
0
Comment
Question by:ohemaa
[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
4 Comments
 
LVL 15

Accepted Solution

by:
mcmonap earned 250 total points
ID: 18768053
Hi ohemaa,

To change the mode whilst SQL server is running use the sp_dboption, check out the syntax here:
http://msdn2.microsoft.com/en-us/library/ms187310.aspx
0
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 250 total points
ID: 18769343
to put the entire instance of sql server into single user mode, you have to first stop the running sql server instance (stop service).

anyhow, then you have to start:
c:\program files\Microsoft Sql server\MSSQL$Customer\BINN>sqlservr -m -c

note: sp_dboption is only to put a single database in single-user mode.

0
 

Author Comment

by:ohemaa
ID: 18772132
I issued this:

c:\program files\Microsoft Sql server\MSSQL$Customer\BINN>sqlservr -m -c
it only puts the Sqlserver in single user mode not the instance even though the path is pointintg to the instance
i am able to restore the master database but not the instance master Db
0
 

Author Comment

by:ohemaa
ID: 18772864
I am just trying to restore the master DB on the Instance ,...help help
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

734 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