Hi,
The OLE DB provider "MSDASQL" for linked server "HANASERVER" reported an error. The provider did not give any information about the error.
Unfortunately usually when you get this error, it does not provide any useful information except the fact that the error come from the external source. For more information, you should monitor the errors in the source data - in your case in the SAP HANA
Notice that I said "usually" since in your case you have a simple issue in your query, and fixing this should be first step
SELECT FROM OPENQUERY([HANASERVER],'SELECT FROM "TEST"."WAREHOUSE"')
I have no idea if this is a laziness which present only a part of the query for the sake of the discussion (in this case it is bad way to discuss issue) or the exact query which you use - in this case please notice that you should add the information which you want to select (the columns). for example SELECT XXXX FROM OPENQUERY([HANASERVER],'SELECT XXXX FROM "TEST"."WAREHOUSE"')
Dont forget that SAP HANA (high-performance analytic appliance) is a column-oriented database so you need to query the columns just like SQL Server. You should not execute SELECT FROM Table_name
but SELECT Column_Name From Table_name
connecting via Linked Server
If you are using linked server and the configuration was good then you can use the four-parts-name in order to query the data instead of using OPENQUERY. Check this very short step by step tutorial: https://www.cdata.com/kb/tech/saphana-odbc-linked-server.rst
SELECT * FROM [linked server name].[CData SAPHANA Sys].[SAPHANA].[Buckets]