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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sql Database Restore

Status
Not open for further replies.

bionicman

MIS
Jan 14, 2004
12
GB
Hi,

Im having trouble restoring a SQL Database, I keep getting an error message stating "Database Query Error". This is trying to restore a database over a current one which has no locks.
 
Take a look at the SQL server Application log
Can you run a test backup before you restore?
 
You can't just restore over another database (even if it's the same name). You need to restore it with the REPLACE command. Since I don't use the Backup Exec SQL Agent, I don't know if the REPLACE option is available.

-SQLBill

Posting advice: FAQ481-4875
 
IN the SQL agent restore properties - pick the option to overwrite - this will issue the replace command behind the scenes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top