on 12-22-2017 8:52 AM - last edited on 02-04-2024 1:39 AM by postmig_api_4
Dear Experts,
Am using DataAdpater to update one UDT in SAP B1 Hana database. But am getting the following Error.
"Sap.Data.Hana.HanaException (0x80004005): sql syntax error: incorrect syntax near "@": line 1 col 13 (at pos 13) at Sap.Data.Hana.HanaDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping) at System.Data.Common.DbDataAdapter.Update(DataTable dataTable) "
Even I have tried with HANADATAADAPTER also. But still same Error.
Code :
sboStagingHanaAdapter.UpdateCommand = new HanaCommand(updateCommand, this.SboHanaConnecton);
sboStagingHanaAdapter.Update(dt);
sboStagingTableAdapter.UpdateCommand = new System.Data.Odbc.OdbcCommand(updateCommand, this.OdbcConnection);
sboStagingTableAdapter.Update(dataSet.Tables[0]);
Thanks in advance.
It will be hard to tell without sharing the query.
Nevertheless, read my answer about SQL statements on HANA.
The XSOdata works on top of tables as well and might give you a more streamlined approach.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.