Solved

Single mode SQL Instance

Posted on 2007-03-21
4
293 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
  • 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 142

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Noob question:this site is sql vulns? 2 43
.htaccess file settings 4 35
Date conversion in sql server 2012 6 26
Mssql SQL query 14 27
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…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

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