|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40796 ODBC connect fails using
Submitted: 2007-03-13 18:07 UTC Modified: 2007-03-13 19:53 UTC
From: callahal at vaniercollege dot qc dot ca Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 5.2.1 OS: Windows 2003 svr std
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.
Block user comment
Status: Assign to:
Bug Type:
From: callahal at vaniercollege dot qc dot ca
New email:
PHP Version: OS:


 [2007-03-13 18:07 UTC] callahal at vaniercollege dot qc dot ca
Setup is
Windows 2003 Server STD, IIS6, PHP 5.2.1
using php-cgi.exe I cannoct connect to my system dsn datasource
which, as shown, is the northwind sample database on Ms_SQL Server 2000.
If I use php5isapi.dll, everything works fine.
However I prefer to use the php-cgi.exe.

All of php.exe, php-cgi.exe and php5isapi.dll work fine with ODBC connects with PHP version 5.2.0.


Reproduce code:
if($odbc_db = odbc_connect('Northwind', 'sample', 'sample')){
	echo "Connected AOK". eol ;
	die("Could not connect to ODBC data source Northwind");

Expected result:
I should connect


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-13 19:12 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Use odbc_errormsg() to get the error message.
 [2007-03-13 19:53 UTC] callahal at vaniercollege dot qc dot ca
Well If you say it's bogus -- fine.
But as I said, on the same machine - swap out the 5.2.1 and put back 5.2.0 and everything works fine. And BTW it's only the ODBC connect that doesn't work OCi8 works fine and so does MySQL connections.
But what do I know.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun May 22 20:05:44 2022 UTC