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

SHRINK SQL FILE Expand / Collapse
Author
Message
Posted Monday, May 5, 2014 2:04 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 17, 2014 2:22 AM
Points: 28, Visits: 540
http://tinypic.com/view.php?pic=2ly5ym0&s=8#.U2dDemeKDop

hi all,
i don't understand why file is not shrink after shrink file is made.
i used shrink with release space .( i dont wont to use with reorganize page option to avoid fragmentation)
there is no ghost record on this file, also file contain one table.

any suggestion ?

(sql 2008 r2 sp 2 on win server)

thanks sharon
Post #1567437
Posted Monday, May 5, 2014 4:51 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 3:11 PM
Points: 15,517, Visits: 27,898
If you're not reorganizing, it's because there is storage towards the end of the file preventing the shrink from occurring.

A single shrink with a reorganize because you've just had a major problem with data or just did a one time purge or something along these lines is not a big deal. It's regular and repeated shrinking of data files that is very problematic. If you're in the former situation, just do the most efficient shrink operation. If you're in the latter, figure out why you have to keep shrinking and fix that problem.


----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1567465
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse