Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restoring the database: exclusive access could not be obtained

Status
Not open for further replies.

brantGuy

Programmer
Feb 12, 2007
59
CA
While restoring the SQL Server database, I got the message:
Exclusive access could not be obtained because the database is in use. RESTORE DATABASE is terminating abnormally.

Nothing else except sql is running and nothing accessing the db.
 
are you using SQL 2000? If so, either execute sp_who or go under Current Activity -> Process Info and look for any PID's that list your database that you are trying to restore. If you see any, kill them. Chances are that you have EM open and have the database that you are trying to restore expanded in the database tree.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top