Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15694

How many recursions finished already?

$
0
0

Hello,

My recursive CTE query is dealing with quite massive data volume (tens of millions of records) and there could be up to 3.5k iterations thus the query is running for many hours. Naturally, this is not the only process running on the server thus processing time varies. I'd like to track query performance while it's running so that I can better estimate time to completion. Is there a way to figure out which iteration is currently processed? I bet server must have this information somewhere, but I can't locate appropriate SYS table and column.

Thank you very much for any advice or hint!

Daniel


Viewing all articles
Browse latest Browse all 15694

Trending Articles



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