|
Brothers know, for the top code, modify it as follows
string mysqls, bfname
bfname = trim (sle_1.text)
bfname = left (bfname, len (bfname) -2)
mysqls = "BACKUP Database TO '" + bfname + "'"
execute immediate: mysqls USING SQLCA; // Use SQL statement to execute backup immediately
if sqlca.sqlcode = 0 then
messagebox ("Information Tip", 'Backup succeeded!', information!, OK!) // Provide information about the success of the backup
else
messagebox ("Information Tip", 'Backup failed!', information!, OK!)
end if
You have to block the left statement, otherwise you wo n’t have an extension. |
|