Quantcast
Channel: SCN: Message List - SAP MaxDB
Viewing all articles
Browse latest Browse all 2539

ODBC Connection String not working on Cloudshare Trial environment.

$
0
0

Hello,

 

I am trying to connect to HANA DB with PHP via an ODBC connection in WAMP.

 

Created User DSN  as well as System DSN in Control Panel > Administrative Tools > Data Sources, its connecting successfully.

 

I am using following PHP code to achieve connection but failed to do so

 

$conn = odbc_connect("HANA_CONNECT","SYSTEM","manager");


            // odbc_connect("HANA_CONNECT","SYSTEM","manager", SQL_CUR_USE_ODBC); // Used this as well

 


    if (!($conn)) {

              echo "<p>Connection to DB via ODBC failed: ";

             // echo odbc_errormsg ($conn );

              echo "</p>\n";

    }

 


I got following error

 

ODBCError.JPG

I have enabled odbc setting in php.ini.

 

Feedback appreciated


Viewing all articles
Browse latest Browse all 2539

Trending Articles



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