Re: MSSQL_CONNECT problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
>     Try something like this:
>
>
>
> $dbhost=\\\\SERVER\\INSTANCE_NAME,PORT;
> $dbuser="USERNAME";
> $dbpass="PASSWORD";
> $db_connect=mssql_connect($dbhost,$dbuser,$dbpass) or die ('Server
> connection failed');
>
>
>
> $mssql_database = mssql_select_db("DATABASE", $db_connect) or die ('DB
> selection failed');
>
>
>
>  Same thing:
>
>
>
> Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
> server: \\10.10.103.222\INTRA_SQL,1433 in
> D:\Inetpub\wwwroot\cratos\test.php on line 5
>
> Server connection failed
>
Is INTRA_SQL your instance name or database name?  If it is the instance
name, is that instance setup to use 1433 as the port?  I know 1433 is the
default port for MSSQL, but the majority of people change that.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux