Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Connect SAP HANA via ODBC

$
0
0

Thanks Lars for the relay!

 

Actually i think i did not make myself clearly. The thing is I indeed tried using program(VFP 9.0) to create the connection to sap hana, but still popping up window to ask for the database username and password although i specified them in the coding. 

 

I also tried sap hana user store to save the info of database server and username/password to a key but that still does not work.

 

Do you think if there is any security check on hana database side?

 

here is my VFP program:

 

----------------------------------------------------------------------------------------------------------------

 

Public gnConnhandle

gnConnhandle=SQLSTRINGCONNECT("driver=HDBODBC32;server=208.108.13.1:30015;uid=SYSTEM;pwd=123456")

SQLSETPROP(0,'DispLogin',3)

SQLSETPROP(0,"IdleTimeout",0)

IF gnConnhandle<=0 

   =MESSAGEBOX("Connect to database successfully!",0+48,"Message")

ELSE

   =MESSAGEBOX("Fail to connect database!",0+48,"Message")

ENDIF

 

----------------------------------------------------------------------------------------------------------------

 

-Jack


Viewing all articles
Browse latest Browse all 8968


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>