Sqlserver-dba.com

Subscribe

SQLServer-DBA.com Links

Subscribe to newsletter

Dba_db2_button

Powered by TypePad
Cannot connect to SQL Server

21 May,2012 by Jack Vamvas

Question: I cannot connect to Sql server remotely from management studio , It is the correct User name and password.

Cannot connect to xxxx.xxxx.xxxx.xxxx

 ===================================

 A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)


 

 Answer:  Depending on the exact problem – some of these tests will help  

a) Ping test  - Can you ping to the server?

b) Telnet test  - Can you make a telnet connection connection?

c) Are the SQL services started  ?

d) Can you connect from the server where the SQL Server is based?

e) Checked the Authentication Mode settings on SQL Server. Are you using the correct setting? The setting must be in Mixed Mode to accept SQL usernames and passwords.

f) SQL Server Versions – For example, You cannot connect from SSMS 2005 to SQL Server 2008. Make sure the client and server are compatible.

If you’re connecting through a client , ensure the drivers support the version.

g) Check Server network configuration and make sure the correct protocols are used, such as Named Pipes or TCP\IP.

h) Read the SQL Server Error 26 troubleshooting checklist

Read More

Database Connectivity test with Powershell - SQL Server DBA

SQL Server – Troubleshoot connectivity issues with Connectivity Ring Buffer


Author: Jack Vamvas (http://www.sqlserver-dba.com)

******** *******

Enjoy this post? Enter your email address for updates on new posts:

Delivered by FeedBurner

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer