Problem using MySQLDriverCS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob Nicholson

    #1

    Problem using MySQLDriverCS

    I'm doing some experimentation with MySQL to see if we can support it with
    our next version of our application under VB.NET. I'm trying to use the .NET
    MySQLDriverCS set of libraries but I seem to be struggling with some of the
    syntax.

    I'm trying fill a dataset using the following SQL command:

    Drop Table If Exists `Temp0`;
    Create Temporary Table `Temp0`
    Select * From `KnowledgeCentr es`;
    Select * From `Temp0`;

    This works fine when I execute the SQL in MySQL Control Centre but
    MySQLDriverCS throws up an error about the syntax being wrong near ";"

    Is it legal to pass multiple SQL commands in a MySQLDataAdapte r.Fill
    operation? Is this ";" format just supported by the tools as isn't legal
    MySQL?

    A simple fudge to do "Select * From `KnowledgeCentr es`" works fine so the
    rest of the code is okay.

    Thanks, Rob.


Working...