Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 3 of 3 total |
using Connection.OnSendProgress |
Sat, Jul 4 2009 9:47 AM | Permanent Link |
Pete Hollyer | When doing a backup I'd like to increment a Progress bar to the user so they know something is going on...
Here is my code: DBConn.OnSendProgress+=new EDBCommsProgressEvent(DBConn_OnSendProgress); SQL = "BACKUP DATABASE ListBuilder "; SQL += " AS " + chrQuote + FileName + chrQuote; SQL += " TO STORE Backups" ; SQL += " INCLUDE CATALOG "; dbCommand = new EDBCommand(SQL, DBConn); dbCommand.ExecuteNonQuery(); And here is my method private void DBConn_OnSendProgress(object sender, EventArgs e) { MessageBox.Show("Fired!"); } However when I back up my database some 7MB the event never fires...what am I doing wrong? Pete |
Mon, Jul 6 2009 12:33 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Pete,
<< When doing a backup I'd like to increment a Progress bar to the user so they know something is going on... Here is my code: DBConn.OnSendProgress+=new EDBCommsProgressEvent(DBConn_OnSendProgress); SQL = "BACKUP DATABASE ListBuilder "; SQL += " AS " + chrQuote + FileName + chrQuote; SQL += " TO STORE Backups" ; SQL += " INCLUDE CATALOG "; dbCommand = new EDBCommand(SQL, DBConn); dbCommand.ExecuteNonQuery(); And here is my method >> What you want is this event: EDBCommand.OnProgress http://www.elevatesoft.com/manual?action=mantopic&id=edb2dac&category=3&topic=19 -- Tim Young Elevate Software www.elevatesoft.com |
Wed, Jul 8 2009 11:12 AM | Permanent Link |
Pete Hollyer | Thanks! Works like a champ!! Its amazing how things work when you use the correct events and methods!! Pete |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |