php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7819 Trouble Finding Datasource
Submitted: 2000-11-14 16:32 UTC Modified: 2000-11-15 15:20 UTC
From: arnoldg at allegheny dot edu Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.3pl1 OS: Win98 SE
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arnoldg at allegheny dot edu
New email:
PHP Version: OS:

 

 [2000-11-14 16:32 UTC] arnoldg at allegheny dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-15 15:20 UTC] arnoldg at allegheny dot edu
I figured out the problem.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 22 17:00:02 2026 UTC