Try commenting out various aggregations to identify the problem with
SUM(someIntegerMeasure)
The sum is exceeding the maximum int. Try replacing it with
SUM(CAST(someIntegerMeasure AS BIGINT))
SELECT txt.TEXT AS [SQL Statement], qs.EXECUTION_COUNT [No. Times Executed], qs.LAST_EXECUTION_TIME AS [Last Time Executed], ...
No comments:
Post a Comment