Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Answers
Percent complete in C# console app
Mike
16y
7.3k
1
Reply
I've written a C# console application which, among other things, restores a SQL Server database. It takes a while to restore and I'm wondering if there is a way to display the percentage complete (like it shows when you restore a database manually in the Message pane when STAT is on) in my program console. I understand that if you have multiple tasks, rows, etc. you can calculate the percent completed based off the number of tasks completed divided by the total number of tasks. The problem is that I only have one task, to restore the database.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
Enter values into combobox from database
Save Button Fire The Error Provider When using Binding Source