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 2005 Forums
 SQL Server Administration (2005)
 Shrinking Files

Author  Topic 

swekik
Posting Yak Master

126 Posts

Posted - 2009-03-03 : 11:39:59
How much time will it take to shrink a data file of size 110GB and has 70Gb worth of data and trying to shrink it to 75 GB ?

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2009-03-03 : 13:39:25
Since we don't know the configuration of your server, hardware, datafiles, etc., there is no way for us to say for sure.

Why don't you just shrink it and see how long it takes?



Edit:
Since Tara mentioned the shrink script, I added the link to it:
Shrink DB File by Increment to Target Free Space
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=80355



CODO ERGO SUM
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-03-03 : 13:43:53
It will also depend upon how big of chunks you shrink it in. I find that when I shrink in small chunks, such as with MVJ's script, it completes much faster than if I did larger chunks or even one single large chunk.

I highly recommend MVJ's script to do the shrinks, especially for a database of that size.

My chunk size is typically 500MB or less.

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

Subscribe to my blog
Go to Top of Page

cshah1
Constraint Violating Yak Guru

347 Posts

Posted - 2009-03-03 : 16:46:05
Generally, it is not recommended to shrink database files (unless you have very compelling reason to do so and I hope you really do :) )

Go to Top of Page
   

- Advertisement -