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)
 Shrink Database very low

Author  Topic 

hks
Starting Member

3 Posts

Posted - 2006-07-11 : 03:33:01
Hello,
I have problem in data files (*.mdf) very big (at 250 GB) and It make very slow the process when I query the database. Every I shrink database needs 2 days. What I can do to make faster the shrink files ? and why data files very big ? thx






jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2006-07-11 : 03:39:25
do you need to do some archiving perhaps?

--------------------
keeping it simple...
Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2006-07-11 : 03:41:12
Check what your growth factor is.
The size of the file shouldn't make much difference to the speed of the queries.
Sounds like the file needs to be that size so when you shrink it it just has to grow again which will slow everything down.
Look at your processing to see what is causing the file to grow - presumably you are adding and deleting data.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2006-07-11 : 07:30:24
What is the size of the file BEFORE you shrink, and what size does it reduce to AFTER the shrink?

See also: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Database%20Shrinking,Shrink,Shrinking

Kristen
Go to Top of Page

hks
Starting Member

3 Posts

Posted - 2006-07-17 : 00:09:53
quote:
Originally posted by jen

do you need to do some archiving perhaps?

--------------------
keeping it simple...



It's not a simple thing...
I Have 2 servers which like that...
Data servers :
Memory 4 GB
Dual Xeon 3 Ghz (hyper)
Hardisk 4x 250 GB SATA ==> full with data base

If I can smooth the shrink proces ... I can spend my free hardisk...

Thx
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2006-07-17 : 02:02:55
imhe, i am able to shrink a database of 150-200 GB in less than 20 minutes (but we only shrink if this is still in dev environ where we do a lot of testing, if it's production, we assume the growth is due to insertion of data)

data files do grow but you can be guided by the Kristen and Nigel's questions, is it worth shrinking everytime? what's contributing to it's growth and 'shrinkage'? what's the growth rate?

the archiving will provide you with free spaces within the actual size of the data file, which means you are actually 'maintaining' the db size instead of 'fire fighting' if the data file grows or probably you are more likely to explore disk size expansion?

hope this helps





--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -