Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


When AutoShrink will occur in SQL server 2008?


When AutoShrink will occur in SQL server 2008?

Author
Message
saran.dharsh
saran.dharsh
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 410
When AutoShrink will occur in SQL server 2008? When autoshrink set true...

But in SQL server 2000, we can schedule the auto shrink .. In the same Manner is it possible to schedule autoshrink in sql server 2008?

Please Suggest!!!


Saranya
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16443 Visits: 13202
Do you have a good reason to use AutoShrink? Because it will mess up the fragmentation of your indexes.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
GSquared
GSquared
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14375 Visits: 9729
Autoshrink will shrink the database when there's 25% space available, per http://msdn.microsoft.com/en-us/library/bb522682.aspx.

But it's almost always a really, really, really bad idea to turn on autoshrink.

You can also schedule a database/file shrink to run at a regular interval through an SQL Agent job. Very easy to do. Details here: http://msdn.microsoft.com/en-us/library/ms189080.aspx

Again, this is a really bad idea and I recommend that you not do it.

Shrinking a database should be done only when it absolutely has to. It has significant impact on performance issues (index fragmentation), file level issues (physical fragmentation), can have a negative effect on backup/recovery plans, and a few other issues.

I can't stress too much that automatically shrinking a database, either through a scheduled job or through autoshrink, is really, really bad.

- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread

"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
saran.dharsh
saran.dharsh
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 410
Its not Recommended only .. However One DB size is 800GB, but free space available is 400GB.
When started shrinking the free space its taking more than 2-3Days . After 2-3 days we are shrinking upto 5-10GB Space alone... There is no User transaction to DB like select or Insert...

How i Can recover Free space?? Highly Suggest me!!
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47204 Visits: 44367
saranya.priyadharshini (12/13/2012)
How i Can recover Free space?? Highly Suggest me!!


DBCC ShrinkFile. There's no other way (other than copying the data to a new DB and dropping the old one)

Let me guess, lots of LOB data? That makes shrink very slow.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
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


sanket kokane
sanket kokane
Old Hand
Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)Old Hand (331 reputation)

Group: General Forum Members
Points: 331 Visits: 1019
GilaMonster (12/13/2012)
saranya.priyadharshini (12/13/2012)
How i Can recover Free space?? Highly Suggest me!!


DBCC ShrinkFile. There's no other way (other than copying the data to a new DB and dropping the old one)

Let me guess, lots of LOB data? That makes shrink very slow.



or moving the table(or rebuiding clustered index) to the new filegroup ?

-----------------------------------------------------------------------------
संकेत कोकणे
saran.dharsh
saran.dharsh
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 410
Let's i will try ...
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47204 Visits: 44367
sanket kokane (12/13/2012)
GilaMonster (12/13/2012)
saranya.priyadharshini (12/13/2012)
How i Can recover Free space?? Highly Suggest me!!


DBCC ShrinkFile. There's no other way (other than copying the data to a new DB and dropping the old one)

Let me guess, lots of LOB data? That makes shrink very slow.



or moving the table(or rebuiding clustered index) to the new filegroup ?


And then? Shrink the old filegroup? Will still have the problem with lob pages making the shrink slow.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
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


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