Thanks for the tips. I ended up using SQL commands to insert, update, delete etc. rows from the database. The "Query successful" messages I mentioned earlier disappeared after I removed some diagnostic code another programmer working on the project had inserted deep in the bowels of...
The expression should be
to_days(now())-60;
and not
to_days(now()-60);
You want to convert today's date to an integer first and then subtract 60 off it, rather than attempting to subtract 60 off a date represented as a string and then trying to convert to an integer date.
I've also encountered the same problem using vbscript in an ASP application. Any update to the database via ADO, regardless of field type (eg. integer, string, etc.), fails.
I would be interested to know if anyone has managed to get MySQL working with ADO.
I checked all the datatypes and other table attributes such as 'required field?' and 'permit zero length string' etc. when I first received the error and it all looked OK.
There should be no errors in that regard - the recordset is opened with an initial query that retrieves a row from the...
I struck the same problem. According to the documentation, the ON clause can only be used with a LEFT (outer) JOIN.
From the MySQL documentation...
-----------------------
MySQL supports the following JOIN syntaxes for use in SELECT statements:
table_reference, table_reference...
I've written an ASP application in VBScript that uses ADO to connect to, read from and update a MySQL database. The read (select) type queries work fine but any attempt to update a table fails with a variety of fairly generic error messages.
eg.
Microsoft OLE DB Provider for ODBC Drivers error...
I've written an ASP application in VBScript that uses ADO to connect to, read from and update a MySQL database. The read (select) type queries work fine but any attempt to update a table fails with a variety of fairly generic error messages.
eg.
Microsoft OLE DB Provider for ODBC Drivers error...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.