Hello
I want to send this string but I got this error message.
Code:
string cmdString = @"IF (5 > 0) SELECT dbIndex FROM VerCommonHeader WHERE productNumber = 'XyX' AND internalSerialNumber = 'A1B2C3' AND rtsStatus = 2";
MySqlCommand command = new MySqlCommand(cmdString, m_connection);
ActivateDatabaseApplicationRole();
using (transaction = m_connection.BeginTransaction())
{
Trace.WriteLine("\n\nBEGIN INSERT\n\n");
//AC foreach (OleDbCommand command in sqlCommands)
foreach (MySqlCommand command in sqlCommands)
{
Trace.WriteLine(command.CommandText);
command.Transaction = transaction;
command.ExecuteNonQuery();
}
transaction.Commit();
}
transaction = null;
Why I get this message? how should be the string?