From a snapshot of dynamic SQL I understand most of the numbers returned. However, for inserts, I get (for example)
Number of executions = 1
Number of compilations = 1
Worst preparation time (ms) = 4
Best preparation time (ms) = 4
Internal rows deleted = 0
Internal rows inserted = 0
Rows read = 74
Internal rows updated = 0
Rows written = 1466
Statement sorts = 0
Total execution time (sec.ms) = 5.219089
Total user cpu time (sec.ms) = 0.265625
Total system cpu time (sec.ms) = 0.015625
Statement text = INSERT INTO tb1 (col1, col2, col3) VALUES (?, ?, ?)
How can 'Number of executions' be 1, whilst 'Rows written' be 1466. The insert statement only inserts 1 row at a time. There are no triggers on the table which might cause other activity. I wondered if it was reporting moved rows due to page splits, but I guess these would report as 'Internal rows'.
Thanks
Martyn Hodgson
CDE Solutions
Number of executions = 1
Number of compilations = 1
Worst preparation time (ms) = 4
Best preparation time (ms) = 4
Internal rows deleted = 0
Internal rows inserted = 0
Rows read = 74
Internal rows updated = 0
Rows written = 1466
Statement sorts = 0
Total execution time (sec.ms) = 5.219089
Total user cpu time (sec.ms) = 0.265625
Total system cpu time (sec.ms) = 0.015625
Statement text = INSERT INTO tb1 (col1, col2, col3) VALUES (?, ?, ?)
How can 'Number of executions' be 1, whilst 'Rows written' be 1466. The insert statement only inserts 1 row at a time. There are no triggers on the table which might cause other activity. I wondered if it was reporting moved rows due to page splits, but I guess these would report as 'Internal rows'.
Thanks
Martyn Hodgson
CDE Solutions