Thanks for your reply. The user will always login to this database using a default user and pass. So, yes, these values are hardcoded as shown. Also this is a basic connection test and is not creating an instance of any class, 'SqlConnection'. This is strictly procedural and it works with a previous version of SQL server. I am specifying the database in the very next line (this wasn't included in last snippet).
PHP Code:
$sqldb=mssql_select_db("Audit",$sqlconnect);
Basically all of the DB functions fail because of the failed connection.
The error strings are as follows:
Warning: mssql_connect() [ function.mssql-connect]: Unable to connect to server: SUPPORTSQL,1433 in C:\xampp\htdocs\test_sqlserv.php on line 13
Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in C:\xampp\htdocs\test_sqlserv.php on line 16
Warning: mssql_query() [ function.mssql-query]: Unable to connect to server: (null) in C:\xampp\htdocs\test_sqlserv.php on line 22
Warning: mssql_query(): A link to the server could not be established in C:\xampp\htdocs\test_sqlserv.php on line 22
Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in C:\xampp\htdocs\test_sqlserv.php on line 25
Warning: mssql_close(): supplied argument is not a valid MS SQL-Link resource in C:\xampp\htdocs\test_sqlserv.php on line 31
|