Capturing index operations using a DDL trigger

Posted by AaronBertrand on SQL Blog See other posts from SQL Blog or by AaronBertrand
Published on Mon, 31 Jan 2011 22:01:00 GMT Indexed on 2011/02/04 23:31 UTC
Read the original article Hit count: 266

Today on twitter the following question came up on the #sqlhelp hash tag, from DaveH0ward : Is there a DMV that can tell me the last time an index was rebuilt? SQL 2008 My initial response: I don't believe so, you'd have to be monitoring for that ... perhaps a DDL trigger capturing ALTER_INDEX? Then I remembered that the default trace in SQL Server ( as long as it is enabled ) will capture these events. My follow-up response: You can get it from the default trace, blog post forthcoming So here is...(read more)

© SQL Blog or respective owner

Related posts about alter index

Related posts about DDL triggers