March 27, 2014 at 8:23 am
Hi all,
I need to find all the index and the creation date. I did cross apply of sys.objects & Sys.indexes on name column. I am getting some but the team is saying they created so many. Please let me know is there another option to find Indexes and their creation date? If you have anything please provide me the script.Thank you
March 27, 2014 at 8:37 am
I'd seen several similar posts on finding index creation date.
i'm very sure that there is no creation date exposed anywhere for indexes; objects in sys.objects have the create_date and modify_date, but it's not the same in sys.indexes; i'm not sure if the data is even captured int eh resource database, but i'm sure it's not exposed or available.
you might find it in the default trace for recently created indexes, but it's not permenantly captured .
you could also create an extended event or trace to capture the information going forwatd.
Lowell
March 27, 2014 at 6:50 pm
Lowell (3/27/2014)
I'd seen several similar posts on finding index creation date.i'm very sure that there is no creation date exposed anywhere for indexes; objects in sys.objects have the create_date and modify_date, but it's not the same in sys.indexes; i'm not sure if the data is even captured int eh resource database, but i'm sure it's not exposed or available.
you might find it in the default trace for recently created indexes, but it's not permenantly captured .
you could also create an extended event or trace to capture the information going forwatd.
What this query ? I was searching one times and I think data were right there . Statistics are included also.
select crdate, i.name, object_name(o.id)
from sysindexes i
join sysobjects o ON o.id = i.id
order by crdate desc
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply