Monitoring the progress of an SQL query in SQL SERVER

前端 未结 4 1670
说谎
说谎 2020-12-17 09:56

I saw a similar question which asked how to monitor the progress of a backup/restore operation: Is there a SQL script that I can use to determine the progress of a SQL Serve

4条回答
  •  自闭症患者
    2020-12-17 10:24

    Yes you can know the estimated elapsed time unless there would be some unexpected situation affecting the execution of the process.

    Select total_elapsed_time,
     * from sys.dm_exec_sessions where session_id="your Id here" 
    

提交回复
热议问题