ntwdblib.dll proves to be necessary...otherwise I'll get a mssql_connect not
found
I used the ntwdblib.dll file from a 5.2.6 zip file
I completely reinstalled XP Prof SP3 along with MS SQL Server 2008 and I still
get the following error:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:
.\SQLEXPRESSLMKIII in C:\Inetpub\wwwroot\trymssql.php on line 8
Fatal error: Maximum execution time of 30 seconds exceeded in
C:\Inetpub\wwwroot\trymssql.php on line 8
<?php
// Server in the this format: <computer>\<instance name> or
// <server>,<port> when using a non default port number
$server = "LANDON\SQLEXPRESSLMKIII";
//$server = '(local)';
//$server = '.\SQLEXPRESSLMKIII';
$link = mssql_connect($server, "sa", "x0x0x0x");
//$link = mssql_connect($server);
if(!$link)
{
die('Something went wrong while connecting to MSSQL');
}
?>
I've looked at all the options/permissions I can find.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php