Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Backup/restore progress
Message
From
06/03/2006 09:34:33
Keith Payne
Technical Marketing Solutions
Florida, United States
 
General information
Forum:
Microsoft SQL Server
Category:
Backups
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01101581
Message ID:
01101710
Views:
13
>I posted this question in the .NET section of UT, but since I have received no replies yet I thought I would post it here too.
>
>I have created a small little backup/restore application for backingup/restoring a MSSQL database. Everything is working just fine but I would like to give the user a little more feedback regarding how much is left of the backup/restore process. I know about the STATS [ = percentage] but I am unsure how I can get that information back to my app.
>Here is how I execute the backup/restore script in my app:
>
>
>SqlConnection sqlCon = new SqlConnection(this.ConnectionString);
>SqlCommand sqlCmd = new SqlCommand();
>sqlCmd.Connection = sqlCon;
>sqlCmd.CommandText = this.SqlScript;
>sqlCon.Open();
>sqlCmd.ExecuteNonQuery();
>sqlCon.Close();
>
>
>Any info on the topic would be appreciated.
>
>Thanks,
>Einar

Einar,

I don't think that ADO.NET is going to give you what you want. However, SQL-DMO (2000) or SQL-SMO (2005) Backup class includes a PercentCompleteEventHandler delegate.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform