August 16, 2002 at 9:23 pm
Is there a way to link scan events captured in profiler to the query that caused the scan? I have been able to identify the table that is being scanned but not the query. BOL says that TransactionId is a data column for the scan:started class but the column is blank.
August 19, 2002 at 11:02 pm
Select the execution plans that will show on which table scan is happening........
Cheers,
Prakash
Prakash Heda
Lead DBA Team - www.sqlfeatures.com
Video sessions on Performance Tuning and SQL 2012 HA
August 20, 2002 at 2:09 am
Include the objectid column in the trace, it will contain the object_id of the table scanned. Then use SELECT OBJECT_NAME(123456789) to get the name of the table, where 123456789 is of course the objectid from the scan event in the trace.
Chris Hedgate @ Apptus Technologies (http://www.apptus.se)
August 20, 2002 at 8:33 am
I have captured the table name from the scan event and the TSQL events. I would like to somehow link the scan event with the cooresponding TSQL event that caused the scan. My goal is to review the SQL that caused the scan. I thought the TransactionID would allow me to do this but the column is blank.
TIA,
Jodie
August 20, 2002 at 5:37 pm
If you add TSQL:StmtStarting I believe it will show up usually 1-3 records before the table scan event.
"Don't roll your eyes at me. I will tape them in place." (Teacher on Boston Public)
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply