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.