Solved

SQL Database shrinks after restore into SQL 2005. Is this normal?

Posted on 2008-06-26
2
173 Views
Last Modified: 2010-03-19
I have two DB backups :
DB a is 54345K
DB b is 456130K

I restore these DB into SQL 2005 and the Physical Files are:
DB a.mdf- 146048k
DB a.ldf- 399104k
DB b.mdf- 504768k
Db b.ldf- 387968 k

I back these Databases up:
DB a is now: 44299k
DB b is now: 292132k

Is this normal?
0
Comment
Question by:stephi01
2 Comments
 
LVL 11

Expert Comment

by:dready
ID: 21878274
I cannot find a link that proves it, but i assume that MS will definitely have improved the compression technology for backups between 2 versions. There are quite some 3rd party tools for improving the size of the backups, as databases do grow very large. (see http://www.sqlmag.com/Article/ArticleID/98180/sql_server_98180.html) So there is absolutely place for improvement for MS, and so i would not worry about this at all; Sounds very logical to me.

0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 21878689
this is perfectly normal.
explanation: the database backup contains the active transaction log part, which could be quite big.
after a restore, that active part becomes clear automatically, as it is rolled back (ie rolled forward) during the recovery part of the restore.
so, a backup just after the restore will have close to 0 active transaction log to be included in the backup, hence can be smaller.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. Theā€¦

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now