Solved

Restore on a Sql database

Posted on 2009-07-10
2
312 Views
Last Modified: 2012-05-07
I removed a database out of my Sql server that I shouldnt have. I deleted the database and the files, also the backup on the server. I have a tape backup of the database. i am trying to restore and i get this message. Below Any ideas?
Restore- MBCSERVER01 V-79-57344-33938 - 
An error occurred on a query to database RSI.
V-79-57344-33938 - Exclusive access could not be obtained because the database is in use.

Open in new window

0
Comment
Question by:m_burnett
2 Comments
 
LVL 41

Accepted Solution

by:
pcelba earned 500 total points
ID: 24825518
The error is occurring because there is an application or process which has a lock on the databases in question. SQL is preventing the restore from being performed as SQL cannot gain total access on the databases. You should see errors from SQL in the application log on your SQL server.

Determine what application or process is accessing the database and stop the process from running when you attempt the restore.

Another possible reason is here: http://seer.entsupport.symantec.com/docs/240054.htm
0
 
LVL 2

Expert Comment

by:pankaj000009
ID: 24826451
1.   Restart server.
2.   and restore database.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
query execution hang 5 28
MS SQL with ODBC 5 35
SQL Server 2012 r2 - Query results have 2 seperate results instead of 1 2 22
T-SQL: Do I need CLUSTERED here? 13 41
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question