Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 About IndexID on profiler

Author  Topic 

sanjnep
Posting Yak Master

191 Posts

Posted - 2005-10-01 : 15:59:29
Hi All,
How can I get the name of table and columns by data coulmn IndexID on sql server profiler?
Thanks
Sanjeev

Sanjeev shrestha

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-10-01 : 16:04:05
You'd have to query the sysindexes and sysindexkeys tables in the associated database.
Go to Top of Page

sanjnep
Posting Yak Master

191 Posts

Posted - 2005-10-01 : 16:14:48
Can you give me one sample query if the IndexID = 3?
Thanks
Sanjeev

Sanjeev shrestha
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-10-01 : 17:31:40
SELECT * FROM sysindexes WHERE id=12345 AND indid=3

12345 would be the object id you get from the trace results.
Go to Top of Page
   

- Advertisement -