Re: [PHP-WIN] PHP connecting to MSSQL

2009-04-01 Thread Sascha Meyer
Hi Alf, Alf wrote: > I have not reinstalled MSDE but have done the svrnetcn you suggest where I > found 1433 listed as the TCP port but when I try netstat -an I get:- > C:\Documents and Settings\Alf Stockton>svrnetcn > > C:\Documents and Settings\Alf Stockton>netstat -an have you restarted the se

Re: [PHP-WIN] PHP connecting to MSSQL

2009-04-01 Thread Alf Stockton
Sascha Meyer wrote: Hi Alf, I just installed MSDE on my PC and I could connect locally with a trusted connection, using shared memory Net-Library. When connecting using hostname and port, the connection failed, because the server was not listening on port 1433. this will resolve your proble

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-31 Thread Sascha Meyer
Hi Alf, I just installed MSDE on my PC and I could connect locally with a trusted connection, using shared memory Net-Library. When connecting using hostname and port, the connection failed, because the server was not listening on port 1433. this will resolve your problem: if you install MSD

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-31 Thread Alf Stockton
Sascha Meyer wrote: Hi Alf, your local SQL Server is probably listening on another port ... perhaps you could try the following in a DOS prompt: netstat and netstat -n The first should give you all open local ports with descriptions to the port if a default port was used. The second will

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-31 Thread Baboucarr Sanneh
uot; Sent: Monday, March 30, 2009 3:16 PM To: "Baboucarr Sanneh" ; "Sascha Meyer" ; 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 proble

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-31 Thread Baboucarr Sanneh
uot; Sent: Monday, March 30, 2009 3:16 PM To: "Baboucarr Sanneh" ; "Sascha Meyer" ; 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 proble

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-31 Thread Baboucarr Sanneh
t;Alf Stockton" Sent: Monday, March 30, 2009 3:16 PM To: "Baboucarr Sanneh" ; "Sascha Meyer" ; 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

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-31 Thread Baboucarr Sanneh
t;Alf Stockton" Sent: Monday, March 30, 2009 3:16 PM To: "Baboucarr Sanneh" ; "Sascha Meyer" ; 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

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-31 Thread Baboucarr Sanneh
.. --- -- From: "Alf Stockton" Sent: Monday, March 30, 2009 3:16 PM To: "Baboucarr Sanneh" ; "Sascha Meyer" ; Subject: Re: [PHP-WIN] PHP connecting to MSSQL Baboucarr Sanneh wrote: okay

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-30 Thread Sascha Meyer
Hi Alf, your local SQL Server is probably listening on another port ... perhaps you could try the following in a DOS prompt: netstat and netstat -n The first should give you all open local ports with descriptions to the port if a default port was used. The second will give you all open port

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-30 Thread Alf Stockton
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

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-30 Thread Sascha Meyer
:15:41 +0200 > Von: Alf Stockton > An: Sascha Meyer > CC: jmer...@gmail.com, php-windows@lists.php.net > Betreff: Re: [PHP-WIN] PHP connecting to MSSQL > Sascha Meyer wrote: > > Hi Alf, > > > > have you checked the comments on the php.net page > (http://us.ph

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-30 Thread Alf Stockton
Sascha Meyer wrote: Hi Alf, have you checked the comments on the php.net page (http://us.php.net/mssql_connect)? These are really helpful when it comes to troubleshooting. Yes I have. In fact that was where I got the original code. One setting I remember to have changed in my environment w

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-30 Thread Sascha Meyer
Hi Alf, have you checked the comments on the php.net page (http://us.php.net/mssql_connect)? These are really helpful when it comes to troubleshooting. One setting I remember to have changed in my environment was the following php.ini entry: [CODE] mssql.secure_connection=off [/CODE] Could y

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-30 Thread Alf Stockton
John Mertic wrote: Which version of mssql are you connecting to? My version number is 8.00.194 RTM Developer Edition -- Regards, Alf Stocktonwww.stockton.co.za You have many friends and very few living enemies. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP-WIN] PHP connecting to MSSQL

2009-03-29 Thread John Mertic
Which version of mssql are you connecting to? John Sent from my iPod On Mar 29, 2009, at 7:31 AM, Alf Stockton wrote: I vave also tried using echo "Error in DBConnect() = " . mssql_get_last_message(); & now all I get is "Error in DBConnect() = " -- Regards, Alf Stocktonwww.stockton.c

[PHP-WIN] PHP connecting to MSSQL

2009-03-29 Thread Alf Stockton
I vave also tried using echo "Error in DBConnect() = " . mssql_get_last_message(); & now all I get is "Error in DBConnect() = " -- Regards, Alf Stocktonwww.stockton.co.za Q: What's the difference between a duck and an elephant? A: You can't get down off an elephant. -- PHP

[PHP-WIN] PHP connecting to MSSQL

2009-03-29 Thread Alf Stockton
I have a problem not being able to connect to a MSSQL database on my laptop from a php application I wrote, however I can access the same database from Enterprise Manager no problem. The connect code looks like:- $link = mssql_connect($servername, $dbusername, $dbpassword) or die("Unable to co