简体   繁体   中英

Cannot update Progress table through ODBCDataAdapter/CommandBuilder

I'm making a simple CRUD app in C# for any single table in our database, interfacing with a Progress database through an ODBC connection. I'm using an OdbcDataAdapter with an OdbcCommandBuilder attached to it.

OdbcCommandBuilder never seems to SET all the values in the row I change, providing incorrect SQL statements to the DataAdapter.

For example, in the Brown table, I change the Name column, but get the Update SQL where nothing is set:

"UPDATE \"PUB\".\"brown\" WHERE ((\"cust-num\" = ?) AND (\"cust-seq\" = ?))"

In the agent-d table, I change the Parent-Name column, but get the Update SQL to change the agent number:

"UPDATE \"PUB\".\"agent-d\" SET \"agent\" = ? WHERE ((\"agent\" = ?) AND (\"parent-num\" = ?) AND (\"cust-num\" = ?))"

Why am I not getting appropriate SQL from the OdbcCommandBuilder?

发现Progress / OpenEdge DB和ODBC Command Builder不能很好地协同工作,这就是为什么我得到笨拙的Update语句的原因。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM