Home All Groups Group Topic Archive Search About

How to find indexes in use w/ Profiler?

Author
7 Sep 2006 8:23 PM
Chris
How do I determine what indexes are being used using profiler?

What events do I capture? I see IndexID as a data column.. I assume I need
this to query sysindexes...

tia,
chris

Author
7 Sep 2006 10:55 PM
Greg Linwood
Hi Chris

Are you using SQL 2000 or SQL 2005?

Regards,
Greg Linwood
SQL Server MVP

Show quote
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:6E5BC071-835E-49DA-A98A-053604D0243A@microsoft.com...
>
> How do I determine what indexes are being used using profiler?
>
> What events do I capture? I see IndexID as a data column.. I assume I need
> this to query sysindexes...
>
> tia,
> chris
>
Author
7 Sep 2006 11:33 PM
Chris
sorry... sql2000

Show quote
"Greg Linwood" wrote:

> Hi Chris
>
> Are you using SQL 2000 or SQL 2005?
>
> Regards,
> Greg Linwood
> SQL Server MVP
>
> "Chris" <Ch***@discussions.microsoft.com> wrote in message
> news:6E5BC071-835E-49DA-A98A-053604D0243A@microsoft.com...
> >
> > How do I determine what indexes are being used using profiler?
> >
> > What events do I capture? I see IndexID as a data column.. I assume I need
> > this to query sysindexes...
> >
> > tia,
> > chris
> >
>
>
>
Author
8 Sep 2006 3:07 AM
Greg Linwood
Hi Chris

This is a hard issue to deal with in SQL 2000. Unfortunately, the only way
I'm aware of to work out which indexes are being used is to capture
execution plans via SQL Profiler traces & run scripts over them (using ::
fn_trace_gettable()) to work out which indexes are being used. SQL 2005, on
the other hand, has a nice management view you can simply query..

Regards,
Greg Linwood
SQL Server MVP

Show quote
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:F828D765-278A-4C92-BE61-61E60430C5B5@microsoft.com...
> sorry... sql2000
>
> "Greg Linwood" wrote:
>
>> Hi Chris
>>
>> Are you using SQL 2000 or SQL 2005?
>>
>> Regards,
>> Greg Linwood
>> SQL Server MVP
>>
>> "Chris" <Ch***@discussions.microsoft.com> wrote in message
>> news:6E5BC071-835E-49DA-A98A-053604D0243A@microsoft.com...
>> >
>> > How do I determine what indexes are being used using profiler?
>> >
>> > What events do I capture? I see IndexID as a data column.. I assume I
>> > need
>> > this to query sysindexes...
>> >
>> > tia,
>> > chris
>> >
>>
>>
>>

AddThis Social Bookmark Button