Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Creating a new secondary index on table - response (3) by pawan0608

$
0
0

You Can use SQL like this
 
SEL * FROM dbc.DBQLObjTbl
WHERE ObjectType = 'Idx'
AND ObjectNum = 4 /* or whatever is your secondary index number 8, 12, 16 ... */
AND ObjectDatabaseName = <your database name>
AND ObjectTableName = <your table name>
 
You will see that  'TypeofUse'  have value '2' - Accessed during query processing
 
you can join this Table with DBQLogTbl table or other DBQL tables based on ProcID and QueryId to see other information about the query like SQL, resource usage, processing time, step time etc.
 
 
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>