How can we help you today?

How To Estimate When a Database Backup Will Complete

Issue
How to determine the percent of completion and estimated completion time of an SQL database backup that is in progress.

Product
Struxureware Power Monitoring
Power Monitoring Expert
ION Enterprise
ION EEM

Environment
SQL Server 2005, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014

Cause
Often when a backup has begun executing either by another party, or started on another computer, or by another method where the GUI is not visible it would be
beneficial to determine when the backup will complete.  This is particularly true when working with larger databases or if it is suspected that the backup
is not progressing.

Resolution
*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.*

While a backup is in progress, you can execute the below query to check the progress.  This will display the total elapsed time and estimated completion time returns milliseconds:

SELECT command, percent_complete,
       'elapsed' = total_elapsed_time / 60000.0,
       'remaining' = estimated_completion_time / 60000.0
FROM sys.dm_exec_requests
WHERE command like 'BACKUP%'


** see attachment containing the SQL script text

Schneider Electric Canada

Attachment(s)
backup.sql [198 Bytes]
Explore more
Category:
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Explore more
Category:

Need help?

Need help?

Product Selector

Product Selector

Quickly and easily find the right products and accessories for your applications.

Get a Quote

Get a Quote

Start your sales inquiry online and en expert will connect with you.

Where to buy?

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Center

Help Center

Find support resources for all your needs, in one place.

  • Help and Contact Center
  • Contact Sales
  • Find our Offices
  • Where to Buy
  • Careers
  • Company Profile
  • Investors
  • Newsroom
  • Report a Misconduct
  • Product Documentation
  • Product Selectors
  • Software and Firmware
  • Product Substitution and Replacement
  • Blog
  • Events
  • Schneider Electric Community
  • Sustainability
  • Legal Information
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings