Got this Exception while calling DataAdapter.Update(MyDataTable);
reason: Forgot to fill the SourceColumn of the OdbcParameter.
Problem solved after setting SourceColumn like this:
_odbcDataAdapter.UpdateCommand =
new
OdbcCommand("UPDATE
Tree SET SetId_Children = ? WHERE ([ID] = ?)"); _odbcDataAdapter.Update(MyDataTable); |
Figure 1. Sample Setting UpdateCommand and calling Update using ODBC.