Solved

Single mode SQL Instance

Posted on 2007-03-21
4
308 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

628 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