{"id":116,"date":"2012-01-10T12:13:25","date_gmt":"2012-01-10T12:13:25","guid":{"rendered":"https:\/\/sqlserverlearner.azurewebsites.net\/2012\/01\/10\/causes-for-network-related-errors-in-sql-server\/"},"modified":"2012-01-10T12:13:25","modified_gmt":"2012-01-10T12:13:25","slug":"causes-for-network-related-errors-in-sql-server","status":"publish","type":"post","link":"https:\/\/sqlserverlearner.com\/2012\/01\/10\/causes-for-network-related-errors-in-sql-server\/","title":{"rendered":"Causes For Network Related Errors in SQL Server"},"content":{"rendered":"

Following are the main reasons for network related errors in SQL Server.<\/p>\n

1) Server\/Instance name is wrong<\/strong>
\nFix:<\/strong> Check for the correct name of the Server\/Instance and try to connect again<\/p>\n

2) SQL Server Service is not running on the Server Machine.<\/strong>
\nFix:<\/strong> Start the SQL Server service on the Server Machine.
\nSteps to start the SQL Server Service:
\n– Run -> Services.msc
\n– RightClick on SQL Server (MSSQLSERVER)<\/strong>
\n– Click on Start<\/p>\n

\"Start<\/a>
Start SQL Server Service<\/figcaption><\/figure>\n

3) SQL Server instance Service is not running on the Server Machine.<\/strong>
\nFix:<\/strong> Start the SQL Server instance service on the Server Machine.
\nSteps to start the SQL Server instance Service:
\n– Run -> Services.msc
\n– RightClick on SQL Server (instancename<\/strong>)<\/strong>
\n– Click on Start<\/p>\n

4) SQL Server Browser Service is not running on the Server Machine.<\/strong>
\nFix:<\/strong> Start the SQL Server Browser service on the Server Machine.
\nSteps to start the SQL Server Browser Service:
\n– Run -> Services.msc
\n– RightClick on SQL Server Browser<\/strong>
\n– Click on Start<\/p>\n

5) TCP\/IP is disabled on the Server Machine.<\/strong>
\nFix:<\/strong> Enable TCP\/IP
\nSteps to enable TCP IP On SQL Server
\nOpen SQL Server Configuration Manager<\/strong>
\n– Allprograms ->( Microsoft SQL Server 2008 R2 (or) Microsoft SQL Server 2008 (or) Microsoft SQL Server 2005 ) -> SQL Server Configuration Manager<\/p>\n

\"Open<\/a>
Open SQL Server Configuration Manager<\/figcaption><\/figure>\n

– Expand SQL Server Network configuration
\n– Click on protocols for MSSQLSERVER (If its an instance click on the respective instance name)
\n– RightClick on TCP\/IP and click on enable<\/p>\n

\"Enable<\/a>
Enable TCP IP<\/figcaption><\/figure>\n

6) Firewall does not allow connections to SQL Server Service.<\/strong>
\nFix:<\/strong> Add exception to Firewall to allow connections to SQL Server Service.<\/p>\n

7) Firewall does not allow connections to SQL Browser Service.<\/strong>
\nFix:<\/strong> Add exception to Firewall to allow connections to SQL Browser Service.<\/p>\n

8 ) Remote connections are disabled on SQL Server<\/strong>
\nFix:<\/strong> Allow remote connections on sql server
\nSteps:
\n– Connect to SQL Server on SSMS
\n– RightClick on Server
\n– Click On Properties
\n– In the Server Properties Popup Select Connections
\n– Check the Allow remote connections to Server<\/strong> and click on OK<\/p>\n

\"Allow<\/a>
Allow Remote Connections to Server<\/figcaption><\/figure>\n

9) Time out errors due to network latency<\/strong>
\nFix:<\/strong> Increase Remote Query Time out
\nSteps:
\n– Connect to SQL Server on SSMS
\n– RightClick on Server
\n– Click On Properties
\n– In the Server Properties Popup Select Connections
\n– Increase the Remote query timeout<\/strong> value and click on OK<\/p>\n

\"Remote<\/a>
Remote Query Time Out<\/figcaption><\/figure>\n

10) Invalid Credentials<\/strong>
\nFix:<\/strong> Fetch the latest creadentials to login into the server or ask the administrator to give your credentials necessary oermissions on the server.<\/p>\n","protected":false},"excerpt":{"rendered":"

Following are the main reasons for network related errors in SQL Server. 1) Server\/Instance name is wrong Fix: Check for the correct name of the Server\/Instance and try to connect again 2) SQL Server Service is not running on the Server Machine. Fix: Start the SQL Server service on the Server Machine. Steps to start…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,128,41,273,3],"tags":[731],"_links":{"self":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts\/116"}],"collection":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":0,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"wp:attachment":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}