Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

SHRINK SQL FILE Expand / Collapse
Posted Monday, May 5, 2014 2:04 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: 2 days ago @ 2:32 AM
Points: 54, Visits: 769

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



Group: General Forum Members
Last Login: Yesterday @ 12:17 PM
Points: 17,173, Visits: 32,139
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 Query Performance Tuning
SQL Server Execution Plans

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

Add to briefcase

Permissions Expand / Collapse