PHP 4.0 Bug #7819: Trouble Finding Datasource
| From: | arnoldg at allegheny dot edu | Date: | Tue, 14 Nov 2000 21:32:15 +0000 |
| Subject: | PHP 4.0 Bug #7819: Trouble Finding Datasource | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38103@lists.php.net to get a copy of this message | ||
From: arnoldg@allegheny.edu
Operating system: Win98 SE
PHP version: 4.0.3pl1
PHP Bug Type: ODBC related
Bug description: Trouble Finding Datasource
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.
--
Edit Bug report at: http://bugs.php.net/?id=7819&edit=1