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.
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 SanjeevSanjeev 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. |
 |
|
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 SanjeevSanjeev shrestha |
 |
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2005-10-01 : 17:31:40
|
SELECT * FROM sysindexes WHERE id=12345 AND indid=312345 would be the object id you get from the trace results. |
 |
|
|
|
|