PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > SQL MP Errors - DB Backup
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
SQL MP Errors - DB Backup

Réponse
 
LinkBack Outils de la discussion
Vieux 14/07/2008, 18h23   #1
Socrates
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut SQL MP Errors - DB Backup

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.

  Réponse avec citation
Vieux 14/07/2008, 20h40   #2
Linchi Shea
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: SQL MP Errors - DB Backup

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.
>

  Réponse avec citation
Vieux 14/07/2008, 21h50   #3
Socrates
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: SQL MP Errors - DB Backup

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.
> >

  Réponse avec citation
Vieux 15/07/2008, 21h14   #4
Denny Cherry
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: SQL MP Errors - DB Backup

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
<Socrates@discussions.microsoft.com> 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.
>> >

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h36.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14860 seconds with 12 queries