parameter missing in statement
Posted: Fri 05 Aug 2005 10:03
I am currently using mySQLDirect (registered copy)
The first time I used it in a Insetstatment it works fine
But now when I set up the dataadapter to use an Insert statement it keeps coming up with the same invalidoperationException
where it give the first insert field is follows
INSERT
mySqlInsertCommandGrantDaysInLieu.CommandText = "INSERT INTO attendance_Days(LoggedBy, LoggedDate, FFNumber, DIL, Holiday) VALUES ('id12345', 04/08/2005, 'id23456', 25/11/2005, 'Bankholiday')"
DATAADAPTER
in the dataadapter I have configured it with the command
INSERT INTO attendance_DaysInLieu(LoggedBy, LoggedDate, FFNumber, DIL, Holiday) VALUES (:LoggedBy, :LoggedDate, :FFNumber, :DIL, :Holiday)
Yet if I cope the above insert statement directly into mySQL it works perfectly
If you need any more information let me know
Thanks
The first time I used it in a Insetstatment it works fine
But now when I set up the dataadapter to use an Insert statement it keeps coming up with the same invalidoperationException
where it give the first insert field is follows
INSERT
mySqlInsertCommandGrantDaysInLieu.CommandText = "INSERT INTO attendance_Days(LoggedBy, LoggedDate, FFNumber, DIL, Holiday) VALUES ('id12345', 04/08/2005, 'id23456', 25/11/2005, 'Bankholiday')"
DATAADAPTER
in the dataadapter I have configured it with the command
INSERT INTO attendance_DaysInLieu(LoggedBy, LoggedDate, FFNumber, DIL, Holiday) VALUES (:LoggedBy, :LoggedDate, :FFNumber, :DIL, :Holiday)
Yet if I cope the above insert statement directly into mySQL it works perfectly
If you need any more information let me know
Thanks