VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Backup and restore MySQL DBs within Visual Basic

Williams Castillo  (1 Submission)   Databases/Data Access/DAO/ADO   VB Script   Beginner   Wed 3rd February 2021

The purpouse of this module is to backup and restore mysql databases within a Visual Basic program.
Please, don't vote for this one... It is a remake of https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=57138&lngWId=1 which inspires me.
It has some improvement on his code: Basically, it take the table creation statement directly from the MySQL engine (so now it publish constrains and indexes correctly) and perfom only on insertion statement per table no matter the number of rows in the table.
Also, it prevent MySQL from generating errors because of the constraing and block the tables before the insertion process.
Also, it could allows the programmers to give feedback to the user about the process and, last but not least, it is IMHO a bit cleaner.

Inputs
Just the filename of the backup file and the connection (ADODB.Connection)

Assumes
The connection should be a valid and active one.

Returns
Nothing.

Side Effects
None.

Rate Backup and restore MySQL DBs within Visual Basic (7(7 Vote))

Download Backup and restore MySQL DBs within Visual Basic

Backup and restore MySQL DBs within Visual Basic Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters