Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
mlike
Starting Member
3 Posts |
Posted - 2012-10-11 : 11:01:54
|
Hello -Is there a script available to easily identify indexes that are fragmented in a database?Thank you in advance!mlike |
|
sunitabeck
Master Smack Fu Yak Hacker
5155 Posts |
Posted - 2012-10-11 : 11:48:09
|
Yes, sys.dm_db_index_physical_stats. http://msdn.microsoft.com/en-us/library/ms188917(v=sql.105).aspxWhen you run it, if you use the detailed mode, it can be resource intensive. |
|
|
|
|
|