A connection was successfully established with the server, but then an error occurred during the login process.

A connection was successfully established with the server, but then an error occurred during the login process.

When you try to connect to a SQL Server database from a client application, under certain circumstances, you might get the below error message: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 – No process is on the other end of the pipe.)

A connection was successfully established with the server, but then an error occurred during the login process. - Article on SQLNetHub

 

There are 2 things you can try in order to overcome this problem:

First Check:

The first check involves ensuring that the maximum number of concurrent connections is set to 0 (in SSMS right-click on instance –> connections –> maximum number of concurrent connections), which means unlimited.

Second Check:

The second check involves ensuring that in your connection string, in the client application, along with the rest of the settings, the database name is correct:

string connString="Server=[SERVER_NAME]; Database=[DATABASE_NAME]; User ID = [USER_NAME]; Password=[PASSWORD]";

For example, in the case where you specified a database that does not exist, even though the connection to the SQL Server instance will be established, the provider will not be able to find the database thus resulting to the above error message.

I hope you found this tip useful and you managed to resolve the issue.

Check our other related Data Access-related articles.

Check out our latest software releases!

Subscribe to our newsletter and stay up to date!

Check out Artemakis’s eBooks!

 

Rate this article: 1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)

Loading...

Reference: SQLNetHub.com (https://www.sqlnethub.com)

© SQLNetHub

What are your views on the subject? Have something to share? Feel free to leave your comment!

 

Artemakis Artemiou
Artemakis Artemiou is a Senior SQL Server and Software Architect, Author, and a former Microsoft Data Platform MVP (2009-2018). He has over 15 years of experience in the IT industry in various roles. Artemakis is the founder of SQLNetHub and TechHowTos.com. Artemakis is the creator of the well-known software tools Snippets Generator and DBA Security Advisor. Also, he is the author of many eBooks on SQL Server. Artemakis currently serves as the President of the Cyprus .NET User Group (CDNUG) and the International .NET Association Country Leader for Cyprus (INETA). Artemakis's official website can be found at aartemiou.com.