Groups | Blog | Home
all groups > sql server replication > september 2003 >

sql server replication : simple log shipping fails



ja
9/12/2003 2:26:49 PM
error: exclusive access could not be obtained because the
database is in use..

this happens after we take a complete backup and do a
whole new restore with undo log as read only.

ja
9/13/2003 10:24:37 AM
Can you do an alter database command if the standby
database is readonly- has to be readonly for the simple
logshipping.



[quoted text, click to view]
Narayana Vyas Kondreddi
9/13/2003 5:24:39 PM
That means that an application or user(s) is connected to the database that
you are trying to restore onto. First you need to make sure nobody is
connected to the database, before you attempt a restore.

You can forcefully set the database into single user mode in SQL Server 2000
using the new extensions of ALTER DATABASE command. You could also use
sp_dboption command. More information is available in SQL Server Books
Online. Also see http://vyaskn.tripod.com/administration_faq.htm#q16 if you
are on SQL Server 7.0

You could use sp_who to see who is currently accessing your database.

--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
What hardware is your SQL Server running on?
http://vyaskn.tripod.com/poll.htm




[quoted text, click to view]
error: exclusive access could not be obtained because the
database is in use..

this happens after we take a complete backup and do a
whole new restore with undo log as read only.



AddThis Social Bookmark Button