I'm working in asp.net trying to insert a record into a Informix 5 table.
Additionally I'm using the Microsoft.Data.ODBC namespace.
Here's the sql that is failing:
INSERT INTO dsTrans_test (clock, jobname, subjob, txaid, txcid, txmach, txdept, txnote, txdate, txhours, txcode, txsource, txtype) VALUES (2320, 'CPO8367', 0, 4500, 4500, '0', 44, 1, '04-2-20', 0, 'NORM', 'M', 'L');
I've tried many variants of the txdate including 4 digit year. The following Exp(error) is occuring.
generic_inf5, ERROR [42000] [OpenLink][ODBC][Informix Server] (-201) ERROR [42000] [OpenLink][ODBC][Driver]Syntax error or access
When I exclude the date, the record is written to the table.
Any help is greatly appreciated!