mssql_connect fails under heavy load
Posted: Mon Dec 06, 2004 9:06 am
I have a strange behaviour happening since Friday.
I use mssql_connect to connect to my db on every page.
My code looks like this:
<?php
@session_start();
include("checkconnection.php"); //just checking if connection is there
include("settings.php");//include settings conenction
$sql = new mod_db();
?>
Here i do my select etc..
<?include("closeconnection.php");//close conenction?>
My connection connect to the remote machine properly and to my DB most of the time, but sometimes (since Friday), i get a connection error message looking like that:
Warning:mssql_connect_db():Unable to connect to database "MyDB".
I cannot understand why iut started doing this as no major changes have been made to the code.
Spomebody got an idea?
s
I use mssql_connect to connect to my db on every page.
My code looks like this:
<?php
@session_start();
include("checkconnection.php"); //just checking if connection is there
include("settings.php");//include settings conenction
$sql = new mod_db();
?>
Here i do my select etc..
<?include("closeconnection.php");//close conenction?>
My connection connect to the remote machine properly and to my DB most of the time, but sometimes (since Friday), i get a connection error message looking like that:
Warning:mssql_connect_db():Unable to connect to database "MyDB".
I cannot understand why iut started doing this as no major changes have been made to the code.
Spomebody got an idea?
s