Home All Groups Group Topic Archive Search About

INDEX LAST REBUILT TIME

Author
25 Aug 2005 4:07 PM
Ram
Hi folks,

Is there a way to find out when was the last time an index was rebuilt?
Is this information is available in any system tables?

Thx,
Ram

Author
25 Aug 2005 5:02 PM
Tibor Karaszi
That information is not stored.

Show quote
"Ram" <R**@discussions.microsoft.com> wrote in message
news:A6D3D5D4-4678-4197-AEF6-2F0952E8DD43@microsoft.com...
> Hi folks,
>
> Is there a way to find out when was the last time an index was rebuilt?
> Is this information is available in any system tables?
>
> Thx,
> Ram
Author
25 Aug 2005 5:06 PM
Aaron Bertrand [SQL Server MVP]
Heh heh, when you issue the DBCC command, write it down in your notebook.
:-)

SQL Server does not track this information.  If you wish to track this
information, you'll have to do it yourself.  For example, you could have a
stored procedure that issues the DBCC command(s) and logs to a table.

A


Show quote
"Ram" <R**@discussions.microsoft.com> wrote in message
news:A6D3D5D4-4678-4197-AEF6-2F0952E8DD43@microsoft.com...
> Hi folks,
>
> Is there a way to find out when was the last time an index was rebuilt?
> Is this information is available in any system tables?
>
> Thx,
> Ram
Author
25 Aug 2005 5:31 PM
ML
Why? If you're trying to schedule regular index rebuilds, do this by
examining actual fragmentation, rather than estimating the amout of time that
should elapse between each defragmentation (rebuild).

See "DBCC SHOWCONTIG" in Books Online.


ML

AddThis Social Bookmark Button