Question

I want to connect to Hana Server hosted on cloudshare from PHP. Following code I am trying but Still no luck. Please suggest the correct syntax also I need to specify the Server:Port to set up ODBC "User DSN". Where can i find the Server:port?

<?php
    $ServerNode='External Address';
    $DRIVER='HDBODBC';
    odbc_connect($DRIVER,$ServerNode,$user,$password, SQL_CUR_USE_ODBC    
?>
Was it helpful?

Solution

SAP HANA Server server name is provided on your cloudshare VM list in VM details of your SAP HANA SPS5 server VM under External Address property. SAP HANA server port number is 30015. You can also have a look at Connecting to your hana database from php using odbc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top