Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
Hi all!!!

I created a database owner in sql-server 2008. I set authentication type to sql server authentication , added username and password to it then set the user mapping for this user to be database owner.

Now when i am trying to run management studio using sql sever authentication , it's showing me this error

A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (.Net SqlClient Data Provider)


I tried to find solution on google but can't find any specific solution.
Posted
Updated 15-Feb-21 7:19am

I have same issue regarding creating a new user in DB. This issue is caused when your TCP/IP is Enabled but the named Pipes is Disabled in SQL server configuration. TO solve

SQL Server Configuration Manager > SQL server Network Configuration > Protocols for MSSQLSERVER(choose the server you want to create the user).
On left Pane TCP/IP > Enabled & Named Pipes > Enabled.

Above process solved my issue of login with different User that I have created for database.
 
Share this answer
 
Comments
CHill60 20-Apr-20 5:46am    
Solution 1 from 8 years ago stated it was because named pipes were disabled. You have added nothing new to the thread
Member 14806265 21-Apr-20 22:03pm    
Well solution 1 provides a link to solution where people after googling 10 times comes to this page and they might not want another link page but rather a solution in this page. That's only the reason i thought would might be helpful. thank you
Issue resolved after I have started the SQL Browser service which was disable and stooped before.
 
Share this answer
 
Comments
CHill60 1-Jun-17 18:39pm    
Why have you resurrected a 5 year old question from someone else to inform us that you have solved your own problem?
This error happens becasue the named pipe support is not enabled for your SQL server.To enable named pipes or for workarounds see the link http://msdn.microsoft.com/en-us/library/ms175496(v=sql.110).aspx[^]
 
Share this answer
 
Hi,

I faced similar issue today, In my case I had a default database associated with user. It was other than master. I deleted the database and when next time I tried to login via Management studio it started giving error.

I went to options tab of connection dialog and specified default = master.

It worked for me.

Thanks,
Nimesh
 
Share this answer
 
For my case, resolve using [Surface Area Configuration] set the [Local and remote connections] to [Using TCP/IP only].
 
Share this answer
 
Comments
CHill60 27-Jul-13 8:50am    
Which is what solution 1 said to do a year ago
this can be useful in troubleshooting sql 2012, basically the connection is there but fails on login. therefore to resolve this issue, change the authentication to sql authentication, login with your sa account and add your acoount or domain account you want to have access and voila it works!. hope this helps
 
Share this answer
 
Comments
CHill60 27-Jul-13 8:51am    
Did you realise that this question is over a year old?
Hi All,

I faced the same issue once and what I did was

1. I stopped all other services (Analysis, integration and reporting services) and restarted the MSSQLSERVER service.
2. Then I was able to connect to database engine using SSMS.
3. Properties > Connection > Changed the value into 0 (Unlimited).

Of course this was not a production environment.
 
Share this answer
 
I face this issue and this link work for me

Change Server Authentication Mode | Microsoft Docs[^]
 
Share this answer
 
The SQL Server login I was using was setup to require the password to be changed at the next login. Once I reset the password my issue was resolved.
 
Share this answer
 
Comments
Member 14992308 5-Feb-21 8:41am    
Same here! I had that problem and I logged into management studio (with the user I was trying to use in c#) that asked to change password. Then, everything just worked fine!
Hi, I am using it in EF Core.
In My Case I forget to add ";" in front of Database name in Package Consoe Manager.

First Command: Scaffold-DbContext "Server= DESKTOP-DDP\SQLEXPRESS; Database=DairyDispatch Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

Correct Command: Scaffold-DbContext "Server= DESKTOP-DDP\SQLEXPRESS; Database=DairyDispatch; Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900