SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SHRINK SQL FILE


SHRINK SQL FILE

Author
Message
sharon-472085
sharon-472085
Valued Member
Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)

Group: General Forum Members
Points: 70 Visits: 804
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
Grant Fritchey
Grant Fritchey
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39637 Visits: 32639
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 and SQL Server Execution Plans
Product Evangelist for Red Gate Software
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search