RE: [PHP] MSSQL_CONNECT problem
- From: Dstoltz@xxxxxxx ("David Stoltz")
- Date: Wed, 10 Dec 2008 09:22:52 -0500
-----Original Message-----
From: Dan Shirah [mailto:mrsquash2@xxxxxxxxx]
Sent: Wednesday, December 10, 2008 8:46 AM
To: David Stoltz
Cc: Daniel Brown; Bastien Koert; php-general@xxxxxxxxxxxxx
Subject: Re: [PHP] MSSQL_CONNECT problem
to
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
server: \\10.10.103.222\INTRA_SQL,1433 inIs INTRA_SQL your instance name or database name? If it is the instance
D:\Inetpub\wwwroot\cratos\test.php on line 5
Server connection failed
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.
Correct - intra_sql is the instance, yes, it's using default port 1433
(which is also specified in the php.ini file)....I've tried connecting
with and without specifying the port - but both ways don't work....
.
- Follow-Ups:
- Re: [PHP] MSSQL_CONNECT problem
- From: "Dan Shirah"
- Re: [PHP] MSSQL_CONNECT problem
- References:
- MSSQL_CONNECT problem
- From: "David Stoltz"
- Re: [PHP] MSSQL_CONNECT problem
- From: "Dan Shirah"
- Re: [PHP] MSSQL_CONNECT problem
- From: "Bastien Koert"
- RE: [PHP] MSSQL_CONNECT problem
- From: "David Stoltz"
- Re: [PHP] MSSQL_CONNECT problem
- From: "Daniel Brown"
- RE: [PHP] MSSQL_CONNECT problem
- From: "David Stoltz"
- Re: [PHP] MSSQL_CONNECT problem
- From: "Dan Shirah"
- RE: [PHP] MSSQL_CONNECT problem
- From: "David Stoltz"
- Re: [PHP] MSSQL_CONNECT problem
- From: "Dan Shirah"
- MSSQL_CONNECT problem
- Prev by Date: Re: [PHP] foreach and destroying variables for memory saving
- Next by Date: RE: Re: [PHP] file_exists and wildcard/regex
- Previous by thread: Re: [PHP] MSSQL_CONNECT problem
- Next by thread: Re: [PHP] MSSQL_CONNECT problem
- Index(es):
Relevant Pages
|
Loading