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
 General SQL Server Forums
 New to SQL Server Administration
 Script to Determine Fragmented Indexes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mlike
Starting Member

USA
3 Posts

Posted - 10/11/2012 :  11:01:54  Show Profile  Reply with Quote
Hello -

Is there a script available to easily identify indexes that are fragmented in a database?

Thank you in advance!

mlike

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 10/11/2012 :  11:48:09  Show Profile  Reply with Quote
Yes, sys.dm_db_index_physical_stats.
http://msdn.microsoft.com/en-us/library/ms188917(v=sql.105).aspx

When you run it, if you use the detailed mode, it can be resource intensive.
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.05 seconds. Powered By: Snitz Forums 2000