Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Backup/restore progress
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Copies de sauvegarde
Titre:
Backup/restore progress
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01101581
Message ID:
01101581
Vues:
53
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
Semper ubi sub ubi.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform