Mega Search
23.2 Million


Sign Up

Make a donation  
SQL MP Errors - DB Backup  
News Group: microsoft.public.sqlserver.server

Hi,

I'm having issues with my db backup mp - it looks like all my system db's 
have multiple users connected..thing is this plan runs at 9:00 PM and no one 
is connected at that time...

error msg's below:

[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5058: [Microsoft][ODBC SQL 
Server Driver][SQL Server]Option 'SINGLE_USER' cannot be set in db 'MASTER'.
[Microsoft][ODBC SQL Server Driver][SQL Server]sp_dboption command failed.
[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 7919: [Microsoft][ODBC SQL 
Server Driver][SQL Server]Repair statement not processed. Database needs to 
be in single user mode.

Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5070: [Microsoft][ODBC SQL 
Server Driver][SQL Server]Database state cannot be changed while other users 
are using the database 'distribution'...[Microsoft][ODBC SQL Server 
Driver][SQL Server]ALTER DATABASE statement failed. [Microsoft][ODBC SQL 
Server Driver][SQL Server]sp_dboption command failed. [Microsoft SQL-DMO 
(ODBC SQLState: 42000)] Error 7919: [Microsoft][ODBC SQL Server Driver][SQL 
Server]Repair statement not processed. Database needs to be in single user 
mode.

[Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5070: [Microsoft][ODBC SQL 
Server Driver][SQL Server]Database state cannot be changed while other users 
are using the database 'msdb' [Microsoft][ODBC SQL Server Driver][SQL 
Server]ALTER DATABASE statement failed. [Microsoft][ODBC SQL Server 
Driver][SQL Server]sp_dboption command failed. Database needs to be in single 
user mode.


Vote for best question.
Score: 0  # Vote:  0
Date Posted: 14-Jul-2008, at 9:23 AM EST
From: =?Utf-8?B?U29jcmF0ZXM=?=
 
RE: SQL MP Errors - DB Backup  
News Group: microsoft.public.sqlserver.server
This is not a database backup error. Most likely, you have the 'Attempt to 
repair any minor problem' checked. With that option on, the maintenance plan 
may try to set the database into a single user mode. And if the database is 
being used, it will not be able to. Generally, it is not a good idea to 
enable that option.

Linchi

"Socrates" wrote:

> Hi,
> 
> I'm having issues with my db backup mp - it looks like all my system db's 
> have multiple users connected..thing is this plan runs at 9:00 PM and no one 
> is connected at that time...
> 
> error msg's below:
> 
> [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5058: [Microsoft][ODBC SQL 
> Server Driver][SQL Server]Option 'SINGLE_USER' cannot be set in db 'MASTER'.
> [Microsoft][ODBC SQL Server Driver][SQL Server]sp_dboption command failed.
> [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 7919: [Microsoft][ODBC SQL 
> Server Driver][SQL Server]Repair statement not processed. Database needs to 
> be in single user mode.
> 
> Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5070: [Microsoft][ODBC SQL 
> Server Driver][SQL Server]Database state cannot be changed while other users 
> are using the database 'distribution'...[Microsoft][ODBC SQL Server 
> Driver][SQL Server]ALTER DATABASE statement failed. [Microsoft][ODBC SQL 
> Server Driver][SQL Server]sp_dboption command failed. [Microsoft SQL-DMO 
> (ODBC SQLState: 42000)] Error 7919: [Microsoft][ODBC SQL Server Driver][SQL 
> Server]Repair statement not processed. Database needs to be in single user 
> mode.
> 
> [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5070: [Microsoft][ODBC SQL 
> Server Driver][SQL Server]Database state cannot be changed while other users 
> are using the database 'msdb' [Microsoft][ODBC SQL Server Driver][SQL 
> Server]ALTER DATABASE statement failed. [Microsoft][ODBC SQL Server 
> Driver][SQL Server]sp_dboption command failed. Database needs to be in single 
> user mode.
> 

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 14-Jul-2008, at 11:40 AM EST
From: =?Utf-8?B?TGluY2hpIFNoZWE=?=
 
RE: SQL MP Errors - DB Backup  
News Group: microsoft.public.sqlserver.server
thanks Linchi..your suggestion corrected the issue. thanks a million.

"Linchi Shea" wrote:

> This is not a database backup error. Most likely, you have the 'Attempt to 
> repair any minor problem' checked. With that option on, the maintenance plan 
> may try to set the database into a single user mode. And if the database is 
> being used, it will not be able to. Generally, it is not a good idea to 
> enable that option.
> 
> Linchi
> 
> "Socrates" wrote:
> 
> > Hi,
> > 
> > I'm having issues with my db backup mp - it looks like all my system db's 
> > have multiple users connected..thing is this plan runs at 9:00 PM and no one 
> > is connected at that time...
> > 
> > error msg's below:
> > 
> > [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5058: [Microsoft][ODBC SQL 
> > Server Driver][SQL Server]Option 'SINGLE_USER' cannot be set in db 'MASTER'.
> > [Microsoft][ODBC SQL Server Driver][SQL Server]sp_dboption command failed.
> > [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 7919: [Microsoft][ODBC SQL 
> > Server Driver][SQL Server]Repair statement not processed. Database needs to 
> > be in single user mode.
> > 
> > Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5070: [Microsoft][ODBC SQL 
> > Server Driver][SQL Server]Database state cannot be changed while other users 
> > are using the database 'distribution'...[Microsoft][ODBC SQL Server 
> > Driver][SQL Server]ALTER DATABASE statement failed. [Microsoft][ODBC SQL 
> > Server Driver][SQL Server]sp_dboption command failed. [Microsoft SQL-DMO 
> > (ODBC SQLState: 42000)] Error 7919: [Microsoft][ODBC SQL Server Driver][SQL 
> > Server]Repair statement not processed. Database needs to be in single user 
> > mode.
> > 
> > [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5070: [Microsoft][ODBC SQL 
> > Server Driver][SQL Server]Database state cannot be changed while other users 
> > are using the database 'msdb' [Microsoft][ODBC SQL Server Driver][SQL 
> > Server]ALTER DATABASE statement failed. [Microsoft][ODBC SQL Server 
> > Driver][SQL Server]sp_dboption command failed. Database needs to be in single 
> > user mode.
> > 

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 14-Jul-2008, at 12:50 PM EST
From: =?Utf-8?B?U29jcmF0ZXM=?=
 
RE: SQL MP Errors - DB Backup  
News Group: microsoft.public.sqlserver.server
If that error is comming up, your database may have minor errors which
need to be repaired.  You should run DBCC CHECKDB and see what the
errors are.

Denny

On Mon, 14 Jul 2008 12:50:01 -0700, Socrates
 wrote:

>thanks Linchi..your suggestion corrected the issue. thanks a million.
>
>"Linchi Shea" wrote:
>
>> This is not a database backup error. Most likely, you have the 'Attempt to 
>> repair any minor problem' checked. With that option on, the maintenance plan 
>> may try to set the database into a single user mode. And if the database is 
>> being used, it will not be able to. Generally, it is not a good idea to 
>> enable that option.
>> 
>> Linchi
>> 
>> "Socrates" wrote:
>> 
>> > Hi,
>> > 
>> > I'm having issues with my db backup mp - it looks like all my system db's 
>> > have multiple users connected..thing is this plan runs at 9:00 PM and no one 
>> > is connected at that time...
>> > 
>> > error msg's below:
>> > 
>> > [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5058: [Microsoft][ODBC SQL 
>> > Server Driver][SQL Server]Option 'SINGLE_USER' cannot be set in db 'MASTER'.
>> > [Microsoft][ODBC SQL Server Driver][SQL Server]sp_dboption command failed.
>> > [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 7919: [Microsoft][ODBC SQL 
>> > Server Driver][SQL Server]Repair statement not processed. Database needs to 
>> > be in single user mode.
>> > 
>> > Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5070: [Microsoft][ODBC SQL 
>> > Server Driver][SQL Server]Database state cannot be changed while other users 
>> > are using the database 'distribution'...[Microsoft][ODBC SQL Server 
>> > Driver][SQL Server]ALTER DATABASE statement failed. [Microsoft][ODBC SQL 
>> > Server Driver][SQL Server]sp_dboption command failed. [Microsoft SQL-DMO 
>> > (ODBC SQLState: 42000)] Error 7919: [Microsoft][ODBC SQL Server Driver][SQL 
>> > Server]Repair statement not processed. Database needs to be in single user 
>> > mode.
>> > 
>> > [Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 5070: [Microsoft][ODBC SQL 
>> > Server Driver][SQL Server]Database state cannot be changed while other users 
>> > are using the database 'msdb' [Microsoft][ODBC SQL Server Driver][SQL 
>> > Server]ALTER DATABASE statement failed. [Microsoft][ODBC SQL Server 
>> > Driver][SQL Server]sp_dboption command failed. Database needs to be in single 
>> > user mode.
>> > 

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Jul-2008, at 12:14 PM EST
From: Denny Cherry