Alex A
asked on
Restoring the database: exclusive access could not be obtained
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.
Are there other ways of making it work except of restarting db server or dropping the database?
Thanks.
Exclusive access could not be obtained because the database is in use. RESTORE DATABASE is terminating abnormally.
Are there other ways of making it work except of restarting db server or dropping the database?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Also remember to clear your connection pool after you restore your database else you may find 'A transport-level error' . This error can be removed by
System.Data.SqlClient.SqlC