Question
Using ASP to connect to a MySQL Database
I have set up a connection item in asp to a MySQL connection
on a Linux server:-
"DRIVER={MySQL ODBC 3.51
Driver};SERVER=somehost.co.uk;DATABASE=DBName;PORT=3306;UID=Username;PAS
SWORD=password;OPTION=3;"
When I click test on the Custom Connection String window I get the
message:-
"Connection was made successfully." and the tables and their properties show in the databases window. However when I click
However when I select View Data by right clicking on one of the tables I get the message:-
"[MySQL][mysqld-4.0.24_Debian-10ubuntu2.1-log]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DBName.Groups limit 100' at line 1."
A similar error prevents me from setting any dynamic list boxes etc.
I am sure that this is not a problem with the database as I am able to connect to it using PHP. I have tried using a driver on my local XPPro PC to connect too but that fails in exactly the same way.
"DRIVER={MySQL ODBC 3.51
Driver};SERVER=somehost.co.uk;DATABASE=DBName;PORT=3306;UID=Username;PAS
SWORD=password;OPTION=3;"
When I click test on the Custom Connection String window I get the
message:-
"Connection was made successfully." and the tables and their properties show in the databases window. However when I click
However when I select View Data by right clicking on one of the tables I get the message:-
"[MySQL][mysqld-4.0.24_Debian-10ubuntu2.1-log]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DBName.Groups limit 100' at line 1."
A similar error prevents me from setting any dynamic list boxes etc.
I am sure that this is not a problem with the database as I am able to connect to it using PHP. I have tried using a driver on my local XPPro PC to connect too but that fails in exactly the same way.
