简体   繁体   中英

Error while querying SAP HANA from SQL Server 2014

The query below is working fine:

SELECT * 
FROM OPENQUERY(DS_64, 'SELECT  TOP 1         *            FROM "workforce"."sales" WHERE ORDER_UPDATED > ''2020-07-24 14:03:23''            ')

When I'm using ORDER_CREATED in place of ORDER_UPDATED , I'm getting the below error:

OLE DB provider "MSDASQL" for linked server "DS_64" returned message "[SAP AG][LIBODBCHDB DLL][HDBODBC] General error;314 numeric overflow: search table error: [6944] exception 70006944: AttributeEngine: overflow in numeric calculation

Any help is going to be highly appreciated. Thanks in advance:)

Below is the query that is giving the above error:

SELECT * 
FROM OPENQUERY(DS_64, 'SELECT  TOP 1         *            FROM "workforce"."sales" WHERE ORDER_CREATED > ''2020-07-24 14:03:23''            ')

I think the syntax for top is limited in the HANA universe. Also, check the datatype HANA is actually using from HANA Studio.

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