Re: PHP connecting to MSSQL

From: Date: Tue, 31 Mar 2009 08:08:32 +0000
Subject: Re: PHP connecting to MSSQL
References: 1 2 3 4 5 6 7  Groups: php.windows 
Request: Send a blank email to php-windows+get-29234@lists.php.net to get a copy of this message
In your mssql_connect statement put the port number of the server to (I.e 1433 if it is left to default) ----------------------------------------------- Aynt perfect but cloze 2 it.. ----------------------------------------------- -------------------------------------------------- From: "Alf Stockton" <alf@stockton.co.za> Sent: Monday, March 30, 2009 3:16 PM To: "Baboucarr Sanneh" <sanneh27@hotmail.com>; "Sascha Meyer" <harlequin2@gmx.de>; <php-windows@lists.php.net> Subject: Re: [PHP-WIN] PHP connecting to MSSQL
Baboucarr Sanneh wrote:
okay try including the port number for the mssql server (I.e 1433) in the connection string..that also can be the problem somethimes and Sasha Meyer said:
just a guess, are you using any kind of firewall (application or port based) > on your computer? Could you try a "telnet localhost 1433" to check if this > > works? Regarding php.ini changes: have you restarted the web server's services
after changing?
Yes I have restarted the needed processes. I have now attempted testing with firewall on, with firewall turned off, with firewall on but exception made for port 1433 and a number of others but in all cases it failed with the following results. Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Alf Stockton>telnet localhost 1433 Connecting To localhost...Could not open connection to the host, on port 1433: C onnect failed C:\Documents and Settings\Alf Stockton>telnet localhost 1433 Connecting To localhost...Could not open connection to the host, on port 1433: Connect failed C:\Documents and Settings\Alf Stockton>telnet localhost 1433 Connecting To localhost...Could not open connection to the host, on port 1433: Connect failed C:\Documents and Settings\Alf Stockton>telnet localhost 1433 Connecting To localhost...Could not open connection to the host, on port 1433: Connect failed C:\Documents and Settings\Alf Stockton>telnet localhost 1433 Connecting To localhost...Could not open connection to the host, on port 1433: Connect failed BTW How can I reinstall MSSQL without loosing existing databases? -- Regards, Alf Stockton www.stockton.co.za Your boss is a few sandwiches short of a picnic.


« previous php.windows (#29234) next »