|
|
|
SSC-Insane
         
Group: General Forum Members
Last Login: Today @ 4:09 AM
Points: 21,357,
Visits: 9,539
|
|
I think this wipes out the stats : AND I.is_hypothetical = 0
I'm not sure though, I have not done such tasks in a very long while.
Check out INDEX_PROPERTIES as well.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 6:40 PM
Points: 8,
Visits: 77
|
|
| Stats? I think it would be a good practice to update stats every so often. This is outside the scope of moving indexes... Mmmm?
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 6:40 PM
Points: 8,
Visits: 77
|
|
My tests do not show any _WA_
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, September 04, 2012 2:04 AM
Points: 263,
Visits: 324
|
|
I have to say as a novice in the DBA continuum... I really appreciate the detailed comments surrounding the code snippets explaining why each piece was done this way (specifically the WHERE clauses with the system table columns). Frequently, I get bogged down in the details of included code as I am digging through BOL to figure out why someone included specific criteria.
Great info - thanks!
J.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Wednesday, May 09, 2012 10:26 AM
Points: 891,
Visits: 1,958
|
|
| Excellent article, Thom! I love working with system tables, they hold so much cool information and really show how SQL Server is a meta-data system. Conveniently, I think I'll have an index move in the near future, so your code will really come in handy.
|
|
|
|