SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 How to resolve internal fragmentation?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bharath.athmarao
Starting Member

India
3 Posts

Posted - 08/21/2014 :  04:49:56  Show Profile  Reply with Quote
I am facing internal fragmentation issue. This happens because the
indexed column is been frequently updated.

I resolved this issue by rebuilding and reorganizing index based on the percentage of avg_fragmentation_in_percent.

In production, I have to run at least twice a day which is not advisable.

How can I resolve this issue?

Thanks in advance.

Reagards,
Bharath

ahmeds08
Aged Yak Warrior

India
675 Posts

Posted - 08/21/2014 :  05:02:04  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
are you using a specific fragmentation value to decide rebuild or reorganize?

Javeed Ahmed
Go to Top of Page

bharath.athmarao
Starting Member

India
3 Posts

Posted - 08/21/2014 :  05:45:35  Show Profile  Reply with Quote
Javeed,

Yes, based on avg_fragmentation_in_percent I will either rebuild or recognize. If it less than 30% I will go for reorganize and if it is more than 30 percent then I go for rebuild.

Reagards,
Bharath
Go to Top of Page

ahmeds08
Aged Yak Warrior

India
675 Posts

Posted - 08/21/2014 :  07:05:59  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
you can schedule the script to run in non business hours, that should be fine. As you are checking the fragmentation levels and taking the necessary action.

Javeed Ahmed
Go to Top of Page

bharath.athmarao
Starting Member

India
3 Posts

Posted - 08/25/2014 :  03:03:21  Show Profile  Reply with Quote
Yes, Is there any other solution other than rebuild or re-organize to resolve internal fragmentation.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000