|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-20 06:08 UTC] pradeep at value-one dot com
[2007-09-21 09:07 UTC] jani@php.net
[2007-09-22 15:30 UTC] pradeep at value-one dot com
[2007-10-02 15:06 UTC] pradeep at value-one dot com
[2007-11-30 21:39 UTC] soulax at email dot com
[2007-12-03 09:50 UTC] pradeep at value-one dot com
[2013-09-27 03:44 UTC] ssufficool@php.net
-Status: Assigned
+Status: Closed
[2013-09-27 03:44 UTC] ssufficool@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 10:00:02 2025 UTC |
Description: ------------ I had PHP 5.1.5 with MSSQL 2000 on IIS 6 in Windows 2003 installed and runnning major PHP production application. Everything was working fine except I had updated my running Windows 2003 server with Service Pack 2. After that, I am getting Consistent Connection to MSSQL faileure by PHP. One momemnt folowing PHP script shows 'Could Not Connect To MSSQL' and the very nect moment it got Connected. I am not able to understand this wired behaviour of PHP. I think it is due to BUG in PHP. <?php $mssqlHost = "localhost"; #notice the port $mssqlUser = 'sa'; $mssqlPass = 'password'; $mssqlDB = 'exdb'; $s = mssql_connect($mssqlHost,$mssqlUser,$mssqlPass) or die('Could not connect to SQL Server on '.$mssqlHost.' '.'Using '.$mssqlUser.' '.'with password '.$mssqlPass.' '.mssql_get_last_message()); echo $s; ?>