<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Problem Shared . . . &#187; php mssql</title>
	<atom:link href="http://www.moorlandit.net/index.php/tag/php-mssql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.moorlandit.net</link>
	<description>A blog of problems . . . and solutions</description>
	<lastBuildDate>Thu, 19 Aug 2010 15:18:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP mssql_connect() unable to connect to server</title>
		<link>http://www.moorlandit.net/index.php/2008/11/php-mssql_connect-unable-to-connect-to-server-78?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=php-mssql_connect-unable-to-connect-to-server</link>
		<comments>http://www.moorlandit.net/index.php/2008/11/php-mssql_connect-unable-to-connect-to-server-78#comments</comments>
		<pubDate>Wed, 12 Nov 2008 09:47:27 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php mssql]]></category>

		<guid isPermaLink="false">http://www.moorlandit.net/?p=78</guid>
		<description><![CDATA[Running PHP on a Windows 2003 Server and connecting to Microsoft SQL Server 2000 Service Pack 4 we found that sometimes the PHP script could connect to the SQL Server but most of the time we&#8217;d get &#8216;mssql_connect() unable to connect to server&#8217;. After Googling the problem I found a lot of references to needing [...]]]></description>
			<content:encoded><![CDATA[<p>Running PHP on a Windows 2003 Server and connecting to Microsoft SQL Server 2000 Service Pack 4 we found that sometimes the PHP script could connect to the SQL Server but most of the time we&#8217;d get &#8216;mssql_connect() unable to connect to server&#8217;.</p>
<p>After Googling the problem I found a lot of references to needing NTWDBLIB.DLL version 2000.80.194.0 rather than the 2000.2.8.0 version that ships with PHP. I copied the DLL from with Windows\system32 folder to the PHP folder and that fixed the problem, for 2minutes! &#8211; then we were back to &#8216;mssql_connect() unable to connect to server&#8217;.</p>
<p>I also saw lots of references to Named Pipes and TCP/IP connections so I went into the SQL Server Client Network Utility. Both Named Pipes and TCP/IP were enabled so I changed the protocol order to move Named Pipes above TCP/IP and that fixed the problem &#8211; permanently.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.moorlandit.net/index.php/2008/11/php-mssql_connect-unable-to-connect-to-server-78/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
