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
 restore taking very long

Author  Topic 

funketekun
Constraint Violating Yak Guru

491 Posts

Posted - 2007-06-15 : 16:44:20
im rstoring a db the file is 7gig. Its taking more than 10 minuts..
how do i know if the backup file is ok to restore it

=============================
http://www.sqlserverstudy.com

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-06-15 : 16:46:52
There's no way to know if a backup file is restoreable until you actually restore it.

Run the restore command using the with stats option so you can see its progress.

restore database db1
from disk = 'E:\db1.BAK'
with stats

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

funketekun
Constraint Violating Yak Guru

491 Posts

Posted - 2007-06-15 : 16:48:29
never mind it took 17 minutes..i was getting scared.

=============================
http://www.sqlserverstudy.com
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-06-15 : 16:49:16
Can use 'restore verifyonly' to check if the backup is good.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-06-15 : 16:53:47
quote:
Originally posted by rmiao

Can use 'restore verifyonly' to check if the backup is good.



That doesn't verify that it is restoreable. The only way to know if it is restoreable is to actually perform a restore. This is why it is so important to test out your production backups on another server. You could be in a position with no valid backups even though you've been backing up your database daily.

Tara Kizer
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -