The Data Collection jobs which uploads the Query Statistics information errors continually due to a bigint calculation which leads to "Arithmetic overflow error converting expression to data type int."This is caused by the "QueryActivityUpload.dtsx" package. In the data flow "DFT - Create Interesting Queries Upload Batch" and specifically the ole source command "ODS - Get current snapshot of dm_exec_query_stats" --> ***r.total_elapsed_time * 1000 AS total_elapsed_time, qs.min_elapsed_time, -- min should not be influenced by in-progress queries --> ***r.total_elapsed_time * 1000 AS max_elapsed_timeI have a very long running service broker spid which has a high r.total_elapsed_time value.So this causes it to error:SELECT MAX(r.total_elapsed_time) * 1000 FROM sys.dm_exec_requests AS r Section from DTS: ***r.total_elapsed_time * 1000 AS total_elapsed_time, qs.min_elapsed_time, -- min should not be influenced by in-progress queries **r.total_elapsed_time * 1000 AS max_elapsed_time
Version
Category
Operating System
Platform