x

Restore Process

Can I determine how much of a restore is complete and how long it will take to finish while it's running?

more ▼

asked Nov 25 '09 at 05:22 PM in Default

Steve Jones - Editor gravatar image

Steve Jones - Editor ♦♦
5.1k 76 79 82

(comments are locked)
10|1200 characters needed characters left

1 answer: sort oldest

Yes, you actually can. If you query the sys.dm_exec_requests dynamic management object you will see a percent_complete column. It will show you approximately (it's not perfect) how much the restore is completed. You also get estimated_completion_time, but I wouldn't count on that (as a matter of fact, it's considered an internal marker and isn't documented within Books Online). Instead, use the total_elapsed_time, start_time and percent_complete to arrive at a finish time.

more ▼

answered Nov 25 '09 at 05:42 PM

Grant Fritchey gravatar image

Grant Fritchey ♦♦
91k 19 21 74

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x101

asked: Nov 25 '09 at 05:22 PM

Seen: 603 times

Last Updated: Nov 25 '09 at 05:22 PM