|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 03, 2011 4:58 PM
Points: 88,
Visits: 191
|
|
I want to verify whether my understanding on SHOWCONTIG is correct or not. DBCC SHOWCONTIG(269244014,1) and DBCC SHOWCONTIG(269244014) are same as both tell about the fragmentation of clustered index. There is nothing called fragmentation of table.
One more question: There are only four indexes but SELECT * FROM SYSINDEXES WHERE ID = 269244014 shows 7 indexes. From where these new 3 indexes has come.
-MJ Please do not print mails and docx unless it is absolutely necessary. Spread environmental awareness.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, June 03, 2011 4:58 PM
Points: 88,
Visits: 191
|
|
Any headsup!!
-MJ Please do not print mails and docx unless it is absolutely necessary. Spread environmental awareness.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: 2 days ago @ 1:56 PM
Points: 1,658,
Visits: 8,564
|
|
Those might be statistics. Please post their names.
MJ
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 3:46 PM
Points: 1,545,
Visits: 832
|
|
If the other 3 "indices" are named "_WA_Sys..." then they're auto-generated statistics that SQL Server has created on non-indexed columns.
When the AutoCreateStatistics is turned on for a database the presence of a filter on a non-indexed field (eg. "... where LastName = 'Smith' ...", where LastName is not the first field in any of the indices on that table) will result in SQL Server creating statistics on that field, looking at the selectivity of the data in that field. The definition of this is stored in sys.indexes.
Don't worry about these: they're generally good things as they help SQL Server determine better (ie. more efficient) query plans.
|
|
|
|