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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-15 15:20 UTC] arnoldg at allegheny dot edu
I figured out the problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 03:01:33 2024 UTC