Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Force Restore

Author  Topic 

dwells
Starting Member

1 Post

Posted - 2005-09-07 : 09:52:33
Hi All

Forgive my ignorance. I have been told you cannot run a force restore without SQL Agent running? Is that so?

Also, is it possible to execute a force restore from a command line. If so, how would you go about do this.

I ask these questions because recently our database and MSBD files became corrupted and couldn't restore them in the normal way. Had to manually rebuild MSDB file.

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-09-07 : 13:03:42
What do you mean by force restore? SQL Agent only needs to be running if you are going to do this in a job. What is an MSDB file?

Tara
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2005-09-07 : 22:51:46
read isql or osql in books online, it's the same as using restore in Query Analyzer only in dos mode

quote:
Originally posted by dwells

Hi All
Also, is it possible to execute a force restore from a command line. If so, how would you go about do this.




How did you go about restoration the normal way? Did you encounter errors?

--------------------
keeping it simple...
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-09-08 : 06:31:25
"What do you mean by force restore"

Maybe this:

ALTER DATABASE MyDatabaseName SET SINGLE_USER WITH ROLLBACK IMMEDIATE

Kristen
Go to Top of Page

homebrew
Posting Yak Master

114 Posts

Posted - 2005-09-08 : 09:41:33
In Enterprise Manager, when restoring a database, there's a selection "Force Restore over Existing Database". Perhaps that's what's being referred to ?
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2005-09-09 : 19:54:21
Kristen's command, if ran right before the restore, will have the same affect.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -