<?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>cmanon.com &#187; database</title>
	<atom:link href="http://cmanon.com/blog/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://cmanon.com/blog</link>
	<description>tal vez juguemos toda la vida aqui ...</description>
	<lastBuildDate>Sun, 05 Feb 2012 13:11:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP MSSQL 2005 Problem &#8211; Solved</title>
		<link>http://cmanon.com/blog/other/uncategorized/php-mssql-2005-problem-solved/</link>
		<comments>http://cmanon.com/blog/other/uncategorized/php-mssql-2005-problem-solved/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 01:09:24 +0000</pubDate>
		<dc:creator>cmanon</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[2005]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://cmanon.com/blog/?p=16</guid>
		<description><![CDATA[Trying to make a connection to a MS SQL Server 2005 database from PHP, I always got an error message using the mssql_connect saying: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: {servername}. I tried several solutions like, updating the &#8230; <a href="http://cmanon.com/blog/other/uncategorized/php-mssql-2005-problem-solved/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Trying to make a connection to a MS SQL Server 2005 database from PHP, I always got an error message using the <a href="http://mx.php.net/mssql_connect">mssql_connect</a> saying:</p>
<blockquote><p>Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: {servername}.</p></blockquote>
<p>I tried several solutions like, updating the ntwdblib.dll (on windows; I had the same error on linux) library, <a href="http://mx.php.net/manual/en/function.mssql-connect.php#79561">configuring the tcp/ip</a> properties on sqlexpress but nothing I still having the same error.</p>
<p>At the end I changed the ip address on the server name by the respective server name and finally worked!.</p>
<p>So instead of:</p>
<p><code><br />
$server = 192.168.50.1;<br />
$user = 'sa';<br />
$password = 'sapassword';<br />
$conn = mssql_connect($server, $user, $password);<br />
</code></p>
<p>Changed for: </p>
<p><code>$server = cmanonserver;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cmanon.com/blog/other/uncategorized/php-mssql-2005-problem-solved/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

