Bug #47580 [Com]: MSSQL: "Changed database context to" when connecting

From: Date: Sat, 05 Feb 2011 19:29:14 +0000
Subject: Bug #47580 [Com]: MSSQL: "Changed database context to" when connecting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158514@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=47580&edit=1

 ID:                 47580
 Comment by:         nkrsaxena at gmail dot com
 Reported by:        maxcamo at gmail dot com
 Summary:            MSSQL: "Changed database context to" when connecting
 Status:             Open
 Type:               Bug
 Package:            MSSQL related
 Operating System:   Win2003
 PHP Version:        5.2CVS-2009-03-05 (snap)
 Block user comment: N
 Private report:     N

 New Comment:

I am facing this problem, making me nuts :-X
it shows mssql connection connected
mssql selectdb fine
but while running query says "Changed database context to" and script
terminated
the same is working fine
1. On MSSQL ternimal
2. php5.1.6 

i tried different RPMS and manual installation with all dependencies but
still 
no luck, even on Clean servers RHEL5
Please help...


Previous Comments:
------------------------------------------------------------------------
[2009-06-13 13:16:11] maxcamo at gmail dot com

I've tried but i get the same problem

Can be related to mssql time_wait tcp/ip?

Thx

Massimo

------------------------------------------------------------------------
[2009-06-02 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2009-05-25 19:46:59] kalle@php.net

Have you tried to change the severity with mssql_min_message_severity?
Error 5701 (Changed database context to) is at severity 10.

------------------------------------------------------------------------
[2009-03-25 16:51:53] maxcamo at gmail dot com

ok but i can't connect to the db,

chaging the script like this
if ($connDb)
    mssql_select_db($db, $connDb);
else
    $lastmsg=mssql_get_last_message()

and...

fputs($fp, gmdate("M d Y H:i:s") . ":: Try:$tries :: 
".$ServerName."::
".$lastmsg." :: ". $pageName . "\r\n");

i dont' get any mssql errors, but i get the same problem

I see this error randomly, or on heavy load, i think

------------------------------------------------------------------------
[2009-03-09 07:32:52] maxcamo at gmail dot com

ok but i can't connect to the db,

chaging the script like this
if ($connDb)
    mssql_select_db($db, $connDb);
else
    $lastmsg=mssql_get_last_message()

and...

fputs($fp, gmdate("M d Y H:i:s") . ":: Try:$tries :: 
".$ServerName."::
".$lastmsg." :: ". $pageName . "\r\n");

i dont' get any mssql errors, but i get the same problem

I see this error randomly, or on heavy load, i think

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=47580


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=47580&edit=1


Thread (10 messages)

« previous php.bugs (#158514) next »