ID: 38965 Updated by: [EMAIL PROTECTED] Reported By: aren at cambre dot biz -Status: Open +Status: Assigned Bug Type: MSSQL related Operating System: Windows 2003 (for both servers) PHP Version: 4.4.4 -Assigned To: +Assigned To: fmk New Comment:
Frank, is this really a PHP problem? Previous Comments: ------------------------------------------------------------------------ [2006-09-26 17:16:54] aren at cambre dot biz Description: ------------ When using mssql_connect to connect to a SQL Server database on a remote server, PHP attemtps to connect using named pipes. This is a terribly outdated behavior; SQL Server connections these days are almost always done with TCP 1433. I figured this out with a difficult phpBB installation and using Wireshark (formerly Ethereal) to watch network traffic. There is a registry hack that can force the SQL Server Client program to use TCP 1433, but this hack's effects on other software is unknown. For more info, see http://people.smu.edu/acambre/blog/2006/09/22/Buggy+PHP.aspx and http://www.phpbb.com/phpBB/viewtopic.php?t=446662&postdays=0&postorder=asc&start=0 Reproduce code: --------------- Just use mssql_connect to connect to an external database. Expected result: ---------------- The database should open just as if the database is on localhost. Actual result: -------------- Usually a cannot connect error. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38965&edit=1