Solved

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

Posted on 2008-06-26
2
198 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 143

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
run a stored procedure from vb.net 1 27
TSQL Challenge... 7 35
TSQL convert date to string 4 34
SQL Log size 3 16
I have a large data set and a SSIS package. How can I load this file in multi threading?
Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

789 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