Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

SQL Monitoring question - how best to monitor an occassionally long running query

$
0
0

Have a very large ETL process. There is one sproc, that executes one truncate, 3 inserts, and then 5 updates all to the same table. This sproc finishes in under 35 minutes 95% of the time. But 5% of the time it takes 8+ hours. I only get notified after the fact that "yesterday it ran 8+ hours again". What can i turn on to help diagnose the issue. Whatever I turn on cannot increase execution time for the ETL process. So obviously I want to narrow it down to the table, or the query, etc. And it would have to be saved so that i can look at it the next day to see what happened.

Thanks.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>