Running on Windows XP, FreeTDS, PHP
I can successfully run my php script from a Linux box with FreeTDS and PHP but when I attempt to run it on my XP box with FreeTDS and PHP the query statements randomly come up with "Query failed...". Typically the first one or two queries succeed but after than they typically fail. I cannot figure out any rhyme or reason for the failures. If I comment out the first one or two queries then most of the time the ones below will work. Haven't found anything googling around that seems to be the reason.
Given the randomness of the failures it seems to me that it might be some resource issue but I cannot narrow it down.
Thanks
Rodney
PHP script:
<?
$link=mssql_connect("idxserver", "myusername", "mypassword");
$result=mssql_query( "SELECT COUNT(*) FROM IDX_CFF;");
while( $row = mssql_fetch_row( $result)){
echo "IDX_CFF row count: ".$row[0]."<br>";
}
$result=mssql_query( "SELECT COUNT(*) FROM IDX_KEEPLIST;");
while( $row = mssql_fetch_row( $result)){
echo "IDX_KEEPLIST row count: ".$row[0]."<br>";
}
$result=mssql_query( "SELECT COUNT(*) FROM IDX_RES_NS;");
while( $row = mssql_fetch_row( $result)){
echo "IDX_RES_NS row count: ".$row[0]."<br>";
}
$result=mssql_query("SELECT COUNT(*) FROM IDX_MLT_NS;");
while( $row = mssql_fetch_row( $result)){
echo "IDX_MLT_NS row count: ".$row[0]."<br>";
}
$result=mssql_query( "SELECT COUNT(*) FROM IDX_LAND_NS;");
while( $row = mssql_fetch_row( $result)){
echo "IDX_LAND_NS row count: ".$row[0]."<br>";
}
mssql_close($link);
?>