PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #7819 Trouble Finding Datasource
Submitted:14 Nov 2000 4:32pm UTC Modified: 15 Nov 2000 3:20pm UTC
From:arnoldg at allegheny dot edu Assigned to:
Status:Closed Category:ODBC related
Version:4.0.3pl1 OS:Win98 SE
View/Vote Developer Edit Submission

[14 Nov 2000 4:32pm 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.
[15 Nov 2000 3:20pm UTC] arnoldg at allegheny dot edu
I figured out the problem.

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC