php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9955 Problem Connecting to the Database
Submitted: 2001-03-23 09:47 UTC Modified: 2001-04-16 23:04 UTC
From: chris at thestreeters dot net Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.0 OS: NT 4.0
Private report: No CVE-ID: None
 [2001-03-23 09:47 UTC] chris at thestreeters dot net
OS: WinNT 4.0 SP
PHP version: 4.0.0
Database: DB2 (remote on network)
Network protocol: TCP/IP

In a previous note from yesterday, Chris explained that there is no ODBC involved in connecting to DB2, the functions just share names:

"Note: There is no ODBC involved when connecting to the above databases. The functions that you use to speak natively to them just happen to share the same names and syntax as the ODBC functions.
<SNIP>

-Chris"

When I tried to use ODBC_CONNECT('ip_address', 'user', 'password');

I got the following ODBC error back from the operating system:

"Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in e:\www\do_dbtest.php on line 7
Couldn't connect."

This looks like to me that ODBC IS in fact being called. and it is causing interference with me getting a connection to my DB2 database.

What could be wrong? Does the newer releases of PHP resolve this or am I doing something wrong on my end?

Thank you.

Chris Streeter

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-23 17:07 UTC] kalowsky@php.net
do try the latest 4.0.4pl1 or even one of the RC's for 4.0.5 and see if this continues for you
 [2001-04-16 23:04 UTC] kalowsky@php.net
no comments from user...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 00:01:28 2024 UTC