从Zend PHP连接到Hana

时间:2022-06-24 16:50:11

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连接到云共享上托管的Hana Server。以下代码我正在尝试,但仍然没有运气。请建议正确的语法我还需要指定Server:Port来设置ODBC“User DSN”。我在哪里可以找到Server:port?

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

1 个解决方案

#1


0  

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.

SAP HANA服务器服务器名称在外部地址属性下的SAP HANA SPS5服务器VM的VM详细信息中的Cloudshare VM列表中提供。 SAP HANA服务器端口号为30015.您还可以使用odbc查看从php连接到您的hana数据库。

#1


0  

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.

SAP HANA服务器服务器名称在外部地址属性下的SAP HANA SPS5服务器VM的VM详细信息中的Cloudshare VM列表中提供。 SAP HANA服务器端口号为30015.您还可以使用odbc查看从php连接到您的hana数据库。