G
Guest
This query runs perfectly within MS Access, yet causes an exception (without
any additional information!) when executed as a command in ADO.NET.
OleDbCommand cmUpd = new OleDbCommand("UPDATE "
+ "DataTarget INNER JOIN DataSource
+ "ON DataTarget.DataID = DataSource.SourceID "
+ "SET "
+ "DataTarget.a = DataSource.a "
+ "WHERE "
+ "DataTarget.a=0", dcUpd);
dcUpd.Open();
cmUpd.ExecuteNonQuery(); //exception!
Data connection is correct and works with other commands.
Other commands are straight selects, updates or inserts.
Only this one is not working.
It seems to be ADO (or the MSAccess data provider) doesn't like the query
itself!
Any ideas?
any additional information!) when executed as a command in ADO.NET.
OleDbCommand cmUpd = new OleDbCommand("UPDATE "
+ "DataTarget INNER JOIN DataSource
+ "ON DataTarget.DataID = DataSource.SourceID "
+ "SET "
+ "DataTarget.a = DataSource.a "
+ "WHERE "
+ "DataTarget.a=0", dcUpd);
dcUpd.Open();
cmUpd.ExecuteNonQuery(); //exception!
Data connection is correct and works with other commands.
Other commands are straight selects, updates or inserts.
Only this one is not working.
It seems to be ADO (or the MSAccess data provider) doesn't like the query
itself!
Any ideas?