Search FAQs

{"searchBar":{"inputPlaceholder":"Search by keyword or ask a question","searchBtn":"Search","error":"Please enter a keyword to search"}}

Database Maintenance Progress

How to determine the progress of a database maintenance operation.

Product Line
Struxureware Power Monitoring 7.0.x
Power Monitoring Expert 7.2.x, 8.x, 9.x, 2020
ION Enterprise 6.0. x

SQL Server 2005, SQL Server 2008 R 2, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017

Maintenance operations on larger database make take some time to complete and can also become 'stuck'.  Monitoring
the progress of these operations can be useful when troubleshooting and/or estimating the time to completion for what may be system
impacting maintenance procedures.

*Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.*

To retrieve the database maintenance progress information from the current SQL Server installation, log into SQL Server Management Studio
and run the attached SQL script (Mnt_Progress.sql).
Alternatively, execute the query(s) below :
SELECT command, percent_complete, start_time 
FROM sys.dm_exec_requests
where percent_complete <> 0;


Mnt_Progress.sqlMnt_Progress.sql [102 Bytes]

Did this answer your question?

Explore more
Explore more
Users group

Discuss this topic with experts

Visit our Community for first-hand insights from experts and peers on this topic and more.