dbTalk Databases Forums  

DB Backup - Single User Mode

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss DB Backup - Single User Mode in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
velu5
 
Posts: n/a

Default DB Backup - Single User Mode - 10-30-2007 , 03:02 PM






Hello ,

Is it possible/recommended to do SQL server instance backups in Single
user mode ?

Thanks in advance,
atv


Reply With Quote
  #2  
Old   
David Portas
 
Posts: n/a

Default Re: DB Backup - Single User Mode - 10-30-2007 , 03:17 PM






"velu5" <thirumalaivelu (AT) gmail (DOT) com> wrote

Quote:
Hello ,

Is it possible/recommended to do SQL server instance backups in Single
user mode ?

Thanks in advance,
atv

It's possible. I can't think of a reason to recommend it unless you
especially needed to prevent any changes (for example if you were backing up
in advance of an upgrade or planning to decommission the original database).

--
David Portas




Reply With Quote
  #3  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: DB Backup - Single User Mode - 10-30-2007 , 04:00 PM



velu5 (thirumalaivelu (AT) gmail (DOT) com) writes:
Quote:
Is it possible/recommended to do SQL server instance backups in Single
user mode ?
Just to emphasize what David said: Yes, it's possible, but the only reason
you would do it, is because you have already put the database in single-
user mode. That is, it's works perfectly well to have backups running with
users active.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
  #4  
Old   
velu5
 
Posts: n/a

Default Re: DB Backup - Single User Mode - 12-03-2007 , 12:13 AM



Tx for your response.
I completely understand and accept that there is no need to do a
backup in single user mode, but for one case if the server is already
in single user mode ..
Here is what I found, in SQL 2000 it was possible to do the
backups(in single user mode) while the SQL 2005 server fails to accept
the connection for backup (the same code/binary SQL-DMO statements are
used for both).

Are there any major changes between SQL server 2000 and SQL server
2005 ?

On Oct 31, 3:00 am, Erland Sommarskog <esq... (AT) sommarskog (DOT) se> wrote:
Quote:
velu5 (thirumalaiv... (AT) gmail (DOT) com) writes:
Is it possible/recommended to doSQLserver instance backups inSingle
usermode?

Just to emphasize what David said: Yes, it's possible, but the only reason
you would do it, is because you have already put the database insingle-usermode. That is, it's works perfectly well to have backups running with
users active.

--
Erland Sommarskog,SQLServer MVP, esq... (AT) sommarskog (DOT) se

Books Online forSQLServer 2005 athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online forSQLServer 2000 athttp://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


Reply With Quote
  #5  
Old   
Greg D. Moore \(Strider\)
 
Posts: n/a

Default Re: DB Backup - Single User Mode - 12-03-2007 , 06:20 AM



"velu5" <thirumalaivelu (AT) gmail (DOT) com> wrote

Quote:
Tx for your response.
I completely understand and accept that there is no need to do a
backup in single user mode, but for one case if the server is already
in single user mode ..
Here is what I found, in SQL 2000 it was possible to do the
backups(in single user mode) while the SQL 2005 server fails to accept
the connection for backup (the same code/binary SQL-DMO statements are
used for both).

Hmm, you sure you don't something else already making a connection?

Quote:
Are there any major changes between SQL server 2000 and SQL server
2005 ?


Yes. Many changes. But I don't know any specifically that would cause this
particular issue.



Quote:
On Oct 31, 3:00 am, Erland Sommarskog <esq... (AT) sommarskog (DOT) se> wrote:
velu5 (thirumalaiv... (AT) gmail (DOT) com) writes:
Is it possible/recommended to doSQLserver instance backups inSingle
usermode?

Just to emphasize what David said: Yes, it's possible, but the only
reason
you would do it, is because you have already put the database
insingle-usermode. That is, it's works perfectly well to have backups
running with
users active.

--
Erland Sommarskog,SQLServer MVP, esq... (AT) sommarskog (DOT) se

Books Online forSQLServer 2005
athttp://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books...
Books Online forSQLServer 2000
athttp://www.microsoft.com/sql/prodinfo/previousversions/books.mspx



--
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html




Reply With Quote
  #6  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: DB Backup - Single User Mode - 12-03-2007 , 04:47 PM



velu5 (thirumalaivelu (AT) gmail (DOT) com) writes:
Quote:
Tx for your response.
I completely understand and accept that there is no need to do a
backup in single user mode, but for one case if the server is already
in single user mode ..
Here is what I found, in SQL 2000 it was possible to do the
backups(in single user mode) while the SQL 2005 server fails to accept
the connection for backup (the same code/binary SQL-DMO statements are
used for both).

Are there any major changes between SQL server 2000 and SQL server
2005 ?
Well, DMO became dusty and old with SQL 2005, and it's possible
that DMO somehow manages to cause double connections.

I've always stayed away from DMO (and its successor SMO), so I cannot
really say much more.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.