A Quick prob for anyone who knows:
I'm using VB6, ADO/ODBC to connect to a MySQL server, and want to run a SQL 'Insert' statement on the Database.
The only way I can get a Date field into the database okay is to specify it in MySQL server's format (yyyy-mm-dd).
Eg. cnDB.Execute "INSERT INTO tablename VALUES(1,'BOB','2001-01-28')"
Shouldn't ODBC be translating the date for me? I want to be able to point the data-source at another type of database without changing my app code.
Cheers
Brendan
I'm using VB6, ADO/ODBC to connect to a MySQL server, and want to run a SQL 'Insert' statement on the Database.
The only way I can get a Date field into the database okay is to specify it in MySQL server's format (yyyy-mm-dd).
Eg. cnDB.Execute "INSERT INTO tablename VALUES(1,'BOB','2001-01-28')"
Shouldn't ODBC be translating the date for me? I want to be able to point the data-source at another type of database without changing my app code.
Cheers
Brendan