{"id":1045,"date":"2012-09-26T06:58:05","date_gmt":"2012-09-26T06:58:05","guid":{"rendered":"http:\/\/techsupport.relyonsoft.in\/?p=1045"},"modified":"2014-04-23T10:00:41","modified_gmt":"2014-04-23T10:00:41","slug":"error-0-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","status":"publish","type":"post","link":"https:\/\/relyonsoft.in\/techsupport\/error-0-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\/","title":{"rendered":"Error 0: 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."},"content":{"rendered":"<p><strong>Error:<\/strong><\/p>\n<p style=\"text-align: justify;\">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: TCP Provider, Error: 0 &#8211; A connection attempt failed because the connected party did not properly respond after a \u00a0period of time, or established connection failed because connected host has failed to respond.)<\/p>\n<p><strong><strong>Snapshot<\/strong>:<\/strong><\/p>\n<p><a href=\"http:\/\/techsupport.relyonsoft.in\/wp-content\/uploads\/2012\/09\/Error-01.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-1047\" title=\"Error 0\" src=\"http:\/\/techsupport.relyonsoft.in\/wp-content\/uploads\/2012\/09\/Error-01.jpg\" alt=\"\" width=\"1307\" height=\"141\" srcset=\"https:\/\/relyonsoft.in\/techsupport\/wp-content\/uploads\/2012\/09\/Error-01.jpg 1307w, https:\/\/relyonsoft.in\/techsupport\/wp-content\/uploads\/2012\/09\/Error-01-300x32.jpg 300w, https:\/\/relyonsoft.in\/techsupport\/wp-content\/uploads\/2012\/09\/Error-01-1024x110.jpg 1024w\" sizes=\"(max-width: 1307px) 100vw, 1307px\" \/><\/a><\/p>\n<p><strong>Causes:<\/strong><\/p>\n<p><strong>Server side:<\/strong><\/p>\n<p>Make sure that you have enabled remote connections on the instance<\/p>\n<p>Make sure that firewall is OFF.<\/p>\n<p>Create an exception for SqlBrowser and SqlServer in server computer.<\/p>\n<p><strong>Client side:<\/strong><\/p>\n<p>Make sure that you have typed correct server computer name and instance name<\/p>\n<p>Make sure that server machine is reachable. Check you are able to ping the server.<\/p>\n<p>Make sure that you are able to access the shared folder of remote server.<\/p>\n<p>Make sure that you are able to connect SQL Server using the Telnet command.<\/p>\n<p><strong>Workaround 1:<\/strong><\/p>\n<p>Enable Using both TCP\/IP and Named Pipes:<\/p>\n<p>All programs | Microsoft SQL Server 2005| Configuration Tools | SQL Server Surface Area Configuration | Configuration for Services and Connections | Remote Connections, choose Local and Remote Connections |Select Using both TCP\/IP and Named Pipes | Click Apply<\/p>\n<p>Restart SQL Server RELYONDB &amp; SQL Server Browser service.<\/p>\n<p><strong>Workaround 2:<\/strong><\/p>\n<p>Enable Using both TCP\/IP and Named Pipes:<\/p>\n<p>All programs | Microsoft SQL Server 2005| Configuration Tools | SQL Server Configuration Manager| SQL Server Network configuration| Right Click &#8220;Named Pipes&#8221; &amp; Click Enable &gt; Right Click &#8220;TCP\\IP&#8221; &amp; Click Enable<\/p>\n<p>Restart SQL Server RELYONDB and SQL Server Browser service.<\/p>\n<p><strong>Workaround 3:<\/strong><\/p>\n<p>Click Start | Run | type firewall.cpl | Switch Off | Click OK.<\/p>\n<p>or<\/p>\n<p>Create an exception in windows firewall.<\/p>\n<p>Add TCP port or sqlservr.exe to Firewall exception list, either add &#8220;..\\Binn\\sqlsevr.exe&#8221; or add port.<\/p>\n<p>Add Sql Browser service to Firewall exception list, you can either add program &#8221; C:\\Program Files\\Microsoft SQL Server\\90\\Shared\\sqlbrowser.exe&#8221; or add UDP port 1434.<\/p>\n<p><strong>Workaround 4: [Client side]<\/strong><\/p>\n<p>Check whether PINGing is happening in both client and server systems<\/p>\n<p>Click Start | Run | type cmd| Click OK<\/p>\n<p>Open command prompt as Run as Administrator | Type PING &lt;ServerIPAddress&gt;<\/p>\n<p><strong>Workaround 5: [Client side]<\/strong><\/p>\n<p>Resolve DNS cache:<\/p>\n<p>Click Start | Run | type cmd| Click OK<\/p>\n<p>Open command prompt as Run as Administrator |\u00a0 type ipconfig \/flushdns<\/p>\n<p><strong>Workaround 6: [Client side]<\/strong><\/p>\n<p>Give server IP address in connection string instead of hostname.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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: TCP Provider, Error: 0 &#8211; A connection attempt failed because the connected party did not properly [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/posts\/1045"}],"collection":[{"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/comments?post=1045"}],"version-history":[{"count":0,"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/posts\/1045\/revisions"}],"wp:attachment":[{"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/media?parent=1045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/categories?post=1045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/relyonsoft.in\/techsupport\/wp-json\/wp\/v2\/tags?post=1045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}