Supplied argument is not a valid MS SQL-Link resource
| From: | davek | Date: | Sat, 14 Apr 2001 17:50:14 +0000 |
| Subject: | Supplied argument is not a valid MS SQL-Link resource | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48564@lists.php.net to get a copy of this message | ||
Does anybody know how to fix this error? "Supplied argument is not a valid
MS SQL-Link resource" I am running:
NT4
MSSQL7.0
IIS4
PHP 4.0.4pl1
I've been running php3 for some time now without any problems but want to
upgrade to 4. This error seems to be occuring at the mssql_query()
function.
$Conn=mssql_connect('192.168.1.20','username','password');
$ThisConnect=mssql_select_db('My_Database',$Conn);
$QueryString="select id, name from my_table";
$Test=mssql_query($QueryString, $ThisConnect);
Please help! Thanks.
Dave