SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Restoring a Compressed DB Backup is taking long
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

94 Posts

Posted - 01/29/2013 :  22:50:04  Show Profile  Reply with Quote

I took a backup of a database with "Compressed" selected in "set backup compression".

When I restore it is taking 6 hours for a backup that usually take an hour without compression. Should I be worried?

I used the following command


restore database DBBlah
from disk='D:\Shiyamtemp\DBBlah_Jan29.bak' 
WITH MOVE 'DBBlah_Data' TO 'D:\SQLDATA\DBBlah_Jan29.mdf',
MOVE 'DBBlah_Log' TO 'D:\SQLDATA\DBBlah_Jan29.ldf',
replace, recovery, stats=5, maxtransfersize=1048576

This is where it is stuck for atleast 4 hours.

75 percent processed.
80 percent processed.
85 percent processed.
90 percent processed.
95 percent processed.
100 percent processed.
Processed 6162912 pages for database 'DBBlah', file 'DBBlah_Data' on file 1.
Processed 1 pages for database 'DBBlah', file 'Blazon_Log' on file 1.

Tried in 2 different database servers, same deal. Please let me know if this could be an issue?

- Shiyam

Posting Yak Master

209 Posts

Posted - 01/29/2013 :  23:10:25  Show Profile  Visit prett's Homepage  Reply with Quote
Please check this post: http://blog.sqlauthority.com/2011/12/28/sql-server-effect-of-compressed-backup-setting-at-server-level-on-database-backup/

Hope it will help you to understand your issue!!
Go to Top of Page

Almighty SQL Goddess

38002 Posts

Posted - 01/29/2013 :  23:52:38  Show Profile  Visit tkizer's Homepage  Reply with Quote
Do you have access to the source database of this backup? If so, check the number of VLFs.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page

Yak Posting Veteran

94 Posts

Posted - 01/30/2013 :  08:09:00  Show Profile  Reply with Quote
Thank you so much, both of you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000