Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is the correct PHP configuration to connect to MS SQL 2000/2005?
    primarykey
    data
    text
    <p>I have a number of servers running <a href="http://museum.php.net/php5/php-5.2.6-nts-Win32.zip" rel="nofollow noreferrer">PHP 5.2.6 (non-thread-safe build)</a> on Windows 2003/IIS6 utilising FastCGI. </p> <p>I'm having some issues connecting to MS SQL 2000/2005 (MySQL connectivity is working fine, ASP/ASP.NET scripts can connect to MS SQL successfully as well). <a href="http://www.userscape.com/helpdesk/index.php?pg=kb.page&amp;id=13" rel="nofollow noreferrer">One solution</a> suggests copying the SQL Client Tools <code>ntwdblib.dll</code> file to the PHP extensions folder or installing all of the SQL Client Tools on the web server (which I'm reluctant to do).</p> <p>Another solution suggested is to use the <a href="http://blogs.msdn.com/sqlphp/archive/2008/07/28/microsoft-sql-server-2005-driver-for-php-v1-0-has-released.aspx" rel="nofollow noreferrer">Microsoft SQL Server 2005 Driver for PHP</a>. This looks fine for writing greenfield apps but for applications such as phpBBS or WordPress this doesn't appear to work.</p> <p>For example, the following script:</p> <pre><code>&lt;?php $host = "mssqlhost"; $user = "phpbb2"; $password = "phpbb2"; $connect_sql_server = mssql_connect($host, $user, $password); ?&gt; </code></pre> <p>Fails with:</p> <blockquote> <p>PHP Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: mssqlhost in E:\AppsDev.NET_UK_Minds\phpSqlNC\www\test.php on line 6</p> </blockquote> <p>The goal is to allow PHP scripts to connect to both SQL 2000 and SQL 2005 which are running on different servers. I should also add that upgrading to a later version of PHP isn't an option at this time.</p> <p>What is the correct way to configure PHP on Windows 2003/IIS6 to connect to SQL 2000/2005?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload