Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Can we shrink database file Expand / Collapse
Author
Message
Posted Wednesday, November 21, 2012 1:32 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, March 22, 2013 12:13 AM
Points: 19, Visits: 128
Hi All,

We have the SQL server 2005 where it has three data files on three different LUN's.

Each data file is 650 Gb but out of which data allocated is 325Gb and 325GB free space. So totally database size is 875GB but free space is approximately 900GB.

So please guide me whether i can go ahead to shrink the database files so that i can remove the free space on all database files.

else please guide me how can i remove free space on the database files.

Regards,
Sanath
Post #1387273
Posted Wednesday, November 21, 2012 1:36 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 1:57 PM
Points: 41,558, Visits: 34,479
Sure you can, if you know that space won't be used in a reasonable amount of time.

A once-off shrink and then rebuild all your indexes afterwards.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1387277
Posted Friday, November 23, 2012 12:38 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, March 22, 2013 12:13 AM
Points: 19, Visits: 128
Thanks
Post #1388065
Posted Monday, November 26, 2012 2:50 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 6:52 AM
Points: 2,820, Visits: 3,917
sanath.kumar.kura (11/21/2012)
Each data file is 650 Gb but out of which data allocated is 325Gb and 325GB free space. So totally database size is 875GB but free space is approximately 900GB.
why you want shrink when you have more then 50% space is free ? data will now or then occupy the space its his job or nature


-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done
Post #1388485
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse