How to find out SQL Server job and rollback complete percentage?

  • All:

    I want to check the complete percentage for long running job like backup/restore, and rollback.

    Any suggestion will be aprreciated

    Thanks

  • You can check the completion percentages of any process through the DMV - sys.dm_exec_requests.

    Moreover, for Backup/Restore progress, that data can be watched through SSMS.

    Hope this helped!

  • track progress of backup--

    SELECT A.NAME,B.TOTAL_ELAPSED_TIME/60000 AS [Running Time],

    B.ESTIMATED_COMPLETION_TIME/60000 AS [Remaining],

    B.PERCENT_COMPLETE as [%],(SELECT TEXT FROM sys.dm_exec_sql_text(B.SQL_HANDLE))AS COMMAND FROM

    MASTER..SYSDATABASES A, sys.dm_exec_requests B

    WHERE A.DBID=B.DATABASE_ID AND B.COMMAND LIKE '%BACKUP%'

    order by percent_complete desc,B.TOTAL_ELAPSED_TIME/60000 desc

    Regards,

    Sushant

    Regards
    Sushant Kumar
    MCTS,MCP

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply