<?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>.Net Geek &#187; SQL Server</title>
	<atom:link href="http://www.aakashjain.com/tag/sql-server/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aakashjain.com</link>
	<description>Technology, musings and stuff by Aakash Jain</description>
	<lastBuildDate>Mon, 04 Jan 2010 13:51:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL SERVER error: 26 &#8211; Error Locating Server/Instance Specified</title>
		<link>http://www.aakashjain.com/sql-server/sql-server-error-26-error-locating-serverinstance-specified-8</link>
		<comments>http://www.aakashjain.com/sql-server/sql-server-error-26-error-locating-serverinstance-specified-8#comments</comments>
		<pubDate>Mon, 23 Feb 2009 06:15:26 +0000</pubDate>
		<dc:creator>Vaibhav</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/SQL+SERVER+Error+26+Error+Locating+ServerInstance+Specified.aspx</guid>
		<description><![CDATA[&#8220;An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connection. (provider: SQL Network Interfaces, error: 26 &#8211; Error Locating Server/Instance Specified)&#8221;
This error might have occured due to the [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>&#8220;An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connection. (provider: SQL Network Interfaces, error: 26 &#8211; Error Locating Server/Instance Specified)&#8221;</strong></em></p>
<p><strong></strong><span style="color: #000000;">This error might have occured due to the following reasons.</span></p>
<h4>1. SQL Server doesn&#8217;t allow a Remote Connection.</h4>
<p align="left"><span style="color: #000000;">Check if the local/remote connections have been enabled for instance. </span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;"><em>Click Start &gt; All Programs &gt; SQL Server 2005 &gt; Configuration Tools &gt;  SQL Server Surface Area Configuration.</em></span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Select Option &#8220;<em><strong>Surface Area Configuration for services and connection</strong></em>&#8220;.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Select the sql server component for which you want to allow remote connection.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Select &#8220;<em><strong>remote connection</strong></em>&#8220;, you will now be able to see the settings for this instance. If you want to allow remote connections. Then Select &#8220;<strong><em>Local and Remote Connections</em></strong>&#8221; Then &#8220;<strong><em>Using both TCP/IP and Named Pipes</em></strong>&#8221; then Apply.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">A message will appear to restart the services. </span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">For this either restart the system or</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;"><em>Click Start &gt; Run &gt; Type &#8220;Services.msc&#8221; &gt; Right Click on your SQL Server Instance &gt; Restart the service.</em></span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Now your SQL Server is ready to accept the remote connections.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Now if the Problem still exists. Then the problem belongs to your network.</span></p>
<h4 style="MARGIN-RIGHT: 0px" dir="ltr">2.  Your Firewall might not be turned off or No exception is added.</h4>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;"> UDP port 1434 should be put into exception if firewall presents. Or turn Off your Firewall.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;"> Now Check if both the system are getting cross ping.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Click Start &gt; Run &gt; Type &#8220;ping &#8216;IP address of remote System&#8217; -t &#8220;</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">On system 1</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">ping IP address of System 2</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">On system 2</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Ping IP address of system 1</span></p>
<p><span style="color: #000000;"> If both the system are getting reply then it means there is no problem in network.</span></p>
<p><span style="color: #000000;"> Else check your antivirus firewall or disable antivirus for few minutes. Now if you still dont    gets</span><span style="color: #000000;"> a reply then your network has a problem. Else you will be able to connect to the remote server.</span></p>
<h4>3. Same Name Conflict between two systems to whom you are trying to connect.</h4>
<p><span style="color: #000000;">Then there could be a same name conflict between two systems. Check if you are trying to connect to the remote machine whose computer name is same as your&#8217;s system name. </span></p>
<p><span style="color: #000000;">Eg. System 1 name is &#8220;admin&#8221;</span></p>
<p><span style="color: #000000;">Remote system name is also &#8220;admin&#8221;</span></p>
<p>you are now trying to connect to remote system but it displays error 26. Then this problem is due to same name conflict. Try to connect to remote system using its IP address, as IP address of each system in a network is always unique.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/sql-server/sql-server-error-26-error-locating-serverinstance-specified-8/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server 2005 error 10061</title>
		<link>http://www.aakashjain.com/sql-server/sql-server-2005-error-10061-4</link>
		<comments>http://www.aakashjain.com/sql-server/sql-server-2005-error-10061-4#comments</comments>
		<pubDate>Sun, 25 Jan 2009 17:16:40 +0000</pubDate>
		<dc:creator>Vaibhav</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Error 10061]]></category>
		<category><![CDATA[Remote Connection]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/SQL+Server+2005+Error+10061.aspx</guid>
		<description><![CDATA[I needed to connect to sql server from a remote computer which is on my home lan.
But got this error message.
Error:
An error has occurred while establishing a connection to the server.  When
connecting to SQL Server 2005, the failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: [...]]]></description>
			<content:encoded><![CDATA[<p align="left"><span style="color: #000000;">I needed to connect to sql server from a remote computer which is on my home lan.<br />
But got this error message.</span></p>
<p align="left"><span style="color: #000000;"><strong>Error:<br />
An error has occurred while establishing a connection to the server.  When<br />
connecting to SQL Server 2005, the failure may be caused by the fact that<br />
under the default settings SQL Server does not allow remote connections.<br />
(provider: TCP Provider error: 0 &#8211; No connection could be made because the<br />
target machine actively refused it.) (Microsoft SQL Server, Error: 10061)</strong></span></p>
<p align="left"><span style="color: #000000;">After some googling I understand what was the problem. I have to allow remote connection in Surface Area Configuration.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;"><em>Click Start &gt; All Programs &gt; SQL Server 2005 &gt; Configuration Tools &gt;  SQL Server Surface Area Configuration.</em></span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Select Option &#8220;<em><strong>Surface Area Configuration for services and connection</strong></em>&#8220;.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Select the sql server component for which you want to allow remote connection.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Select &#8220;<em><strong>remote connection</strong></em>&#8220;, you will now be able to see the settings for this instance. If you want to allow remote connections. Then Select &#8220;<strong><em>Local and Remote Connections</em></strong>&#8221; Then &#8220;<strong><em>Using both TCP/IP and Named Pipes</em></strong>&#8221; then Apply.</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Restart the Sql Server Service</span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;"><em>Click Start &gt; Run &gt; Type &#8220;Services.msc&#8221; &gt; Right Click on your SQL Server Instance &gt; Restart the service.</em></span></p>
<p style="MARGIN-RIGHT: 0px" dir="ltr" align="left"><span style="color: #000000;">Now your SQL Server is ready to accept the remote connections.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/sql-server/sql-server-2005-error-10061-4/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
