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)
 shrinking .mdf file of production server

Author  Topic 

steel
Posting Yak Master

107 Posts

Posted - 2008-05-22 : 01:47:54
Hello all,
I am working on sql server 2000 and have a database with 21 gb of size. so we purged the database to 9 gb but when i am shrinking the database i.e. releasing the free space it is taking too much time. i mean to say that to shrink 100 mb it is taking half an hour so how i could be able to release 12 gb.

note : the db is online that it is a production db.


thanks in advance

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-05-22 : 09:22:12
First of all, Why you have to shrink database of 21Gb? Its not that big. Next after shrinking , you are degrading the performance of DB as index pages will get disorganized causing Fragmentation. For production DB, you should shrink in pieces or increase disk space adding more NDF files(to different FG). Try rebuilding index in offline hours if you see performance degradation.
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-05-22 : 22:13:00
>> it is taking too much time

Yes, shrinking db takes time. Good news is it's online process, you can do it on weekend.
Go to Top of Page

steel
Posting Yak Master

107 Posts

Posted - 2008-05-25 : 09:43:28
sir we have purged the database so we need to free that space
Go to Top of Page
   

- Advertisement -