I'm learning to use MySqlScript Class, and I think that I already know how to execute MySQL Scritps from file and also know what statement has just executed (with StatementExecuted event).. but what about MySQL warnings? is there a way to display results or the warnings of each statement in a script?
I would like to show the SQL statement with the corresponding warnings / rows affected
MySqlScript script = new MySqlScript(myConexion, File.ReadAllText(openFileDialog1.FileName));
script.StatementExecuted += Script_StatementExecuted;
script.Execute();
private void Script_StatementExecuted(object sender, MySqlScriptEventArgs args)
{
MessageBox.Show(args.StatementText); // this is only a test, this will be stored in some other place not displayed as a message;
}