Jump to content

Getting ODBC error while connecting to Teradata from PHP


sunilvadranapu

Recommended Posts

Hi,

  I am trying to connect to Teradata using ODBC from PHP. My code is

        function ConnectDB($dsn, $username, $password, $options="") {
                if (!($this->connection_id = @odbc_connect($dsn,$username,$password)) ){
                        $this->report_error("\nConnection Failed.....\n");
                        exit;
                }
                else {
                      return $this->connection_id;
                }

        }//end of connectDB

 

it is working well and Now suddenly it is giving the error

ODBC error: 523 80 ODBC error code: 81

 

But the same application working from the terminal and failing when running from browser.

 

i set all the ODBC env variables in PHP code itself.

 

Could you tell me what might be the problem.

 

Thanks in advance.

 

-Sunil

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.