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