Thanks for reply. Actually there are probably other places where the tds->query_start_time was not reset. Examples could be tds_submit_prepare, tds_submit_unprepare etc. Regards Ou