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
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Small Backup file produces huge DB

Author  Topic 

X002548
Not Just a Number

15586 Posts

Posted - 2007-10-02 : 13:54:54
So what gives.

I have a a dump that's about 150 mb, and it restored to about 7 gb

Most of it is free space in the data and log file

Is this because it grew in production and no one managed the logs until some point in the future, then left the size the same

So I'm guessing it's smar enough to make the dump as big as it needs to be, but retains the properties of the data/ log files?

Is this correct?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-10-02 : 13:58:48
It is that size because that's the size of the files at the source.

Why would you restraint the data/log file properties? Why not just size the files properly and keep the default properties?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-10-02 : 14:01:53
I got turned around by someone asking me questions about their db that I had to restore and sanitize

In a likelyhood it was prerallocated that way

I told the to shrink the fiels and the db



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-10-02 : 14:16:41
this one surprised me once too... had a backup that was 4 gb in size.
restore then took 56 gb....

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-10-02 : 14:29:16
Ya know, it's because I never ran into that problem since we maintain the health of my databases

I'm seeing a lot more of this now, it's like people don't do maint.

So much for restoring to a point in time

Like a point in time 2 years ago



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-10-02 : 16:40:09
"I never ran into that problem since we maintain the health of my databases"

Yup, I've got several of those T-shirts

"it's like people don't do maint."

Are you gonna tell me something I don't know already?

"So much for restoring to a point in time

Like a point in time 2 years ago
"

Nah, I don't think its that so much as "This is the MDF/LDF size my database grew to once. Then I discovered Maint and Stuff. Anyways, my database is 5x9s - 99.999% free space and I'm happy with that, man!"

Slight downside is the time to initialise a 99.999% free-space database before actually starting the restore

Kristen
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-10-02 : 16:58:52
quote:
Originally posted by Kristen

Slight downside is the time to initialise a 99.999% free-space database before actually starting the restore



Luckily that problem no longer exists in 2005.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Haywood
Posting Yak Master

221 Posts

Posted - 2007-10-02 : 17:55:59
quote:
Originally posted by tkizer

quote:
Originally posted by Kristen

Slight downside is the time to initialise a 99.999% free-space database before actually starting the restore



Luckily that problem no longer exists in 2005.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/




Ahhh, but sadly that's relegated only to Enterprise Edition (Instant File Initialization)....
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-10-02 : 18:03:04
Luckily we only use Enterprise Edition.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Haywood
Posting Yak Master

221 Posts

Posted - 2007-10-02 : 18:04:21
quote:
Originally posted by tkizer

Luckily we only use Enterprise Edition.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/



Same here, you wouldn't believe how difficult it was to find a Std. edition on site a while ago...
Go to Top of Page
   

- Advertisement -