PHP 4.0 Bug #7819 Updated: Trouble Finding Datasource

From: Date: Wed, 15 Nov 2000 20:20:28 +0000
Subject: PHP 4.0 Bug #7819 Updated: Trouble Finding Datasource
Groups: php.dev 
Request: Send a blank email to php-dev+get-38172@lists.php.net to get a copy of this message
ID: 7819 User Update by: arnoldg@allegheny.edu Old-Status: Open Status: Closed Bug Type: ODBC related Description: Trouble Finding Datasource I figured out the problem. Previous Comments: --------------------------------------------------------------------------- [2000-11-14 16:32:15] arnoldg@allegheny.edu I am using PHP 4.0.3pl1 in conjunction with Apache 1.3.12 (Win32) under MS Windows 98 Second Edition. When trying to connect to a Sybase Adaptive Server Anywhere 7.0 datasource running on Win98 I receive the error: Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in functions.odbc.php on line 46 ODBC connection failed. I successfully used the same code when running PHP 4.0.1 compiled with OpenLink ODBC support in conjunction with Apache 1.3.9 under Linux when connecting to a Sybase Adaptive Server Anywhere 7.0 datasource running on WinNT. The database server is named "dbweb" and the datasource name is "webservices". I can successfully connect to the database using the "Test Connection" button in the ODBC Control Panel. The DSN is setup as a "System DSN". Also, I can connect to the database using the Interactive SQL Monitor provided by Sybase. Any suggestions would be greatly appreciated. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7819

« previous php.dev (#38172) next »