all groups > sql server replication > august 2003 >
You're in the

sql server replication

group:

Restoring the distribution database


Restoring the distribution database liddil NO[at]SPAM yahoo.com
8/13/2003 9:47:03 AM
sql server replication:
Hello,
I am trying to restore the distribution database. I get an error that
reads "Exclusive access cannot be obtained because the database is in
use. RESTORE DATABASE is terminating abnormally.".
The SQL Server Books Online tells the following about restoring
distribution database.

"When restoring distribution, the SQL Server replication utilities
should be stopped. If the SQL Server replication utilities are
running, they may access distribution. Replication utilities that must
be stopped are:
i. The Replication Log Reader Agent utility.
ii. The Replication Distribution Agent utility.
iii. The Replication Snapshot Agent utility.
iv. The Replication Merge Agent utility"

Is there any other way apart from stopping all the replication
utilities to get the restore working?

RE: Restoring the distribution database gopal NO[at]SPAM online.microsoft.net
8/13/2003 9:02:44 PM

If you have any entry in sysprocesses table accessing the distribution
database the restore will fail with that error.
So check to see what is accessing the database and kill the connection in
the most suitable manner,

Gopal
Microsoft
AddThis Social Bookmark Button