Reputation: 1958
I'm creating new login in SQL Server 2008 with following sql script:
CREATE LOGIN [xyz] WITH PASSWORD='xyz',
DEFAULT_DATABASE=[master], DEFAULT_LANGUAGE=[us_english],
CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
It creates new login successfully. But when I try to login with it using SQL Server Management Studio it fails saying:
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.) (Microsoft SQL Server, Error: 233)
What's wrong? How do I solve this issue?
Upvotes: 23
Views: 90131
Reputation: 554
Here is how I done it, maybe it works for you too.
login Microsoft SQL Server 2012 with windows authentication.
right-click onto the server name in Object Explorer and click Properties
In the new tab click Security
select SQL Server and Windows Authentication
Ok
Close the SQL server management studio.
start+run
write services.msc
search for SQL there and restart all services.
that works for me.
Upvotes: 37
Reputation: 9099
"A connection was successfully established with the server, but then an error occurred during the login process."
I was getting this problem from sqllocaldb when used from within Docker. The problem was the Docker image was not allocated enough memory. Increasing the memory actually fixed the problem.
Upvotes: 0
Reputation: 527
After following the examples here and still not getting in, I found that my sa login was disabled. The following got me in:
Logged back in under windows authentication.
Expanded Security Tab
Expanded Logins Tab
Right-clicked sa and selected Properties
Went to the Status Tab
Under Login: Clicked 'Enabled' radio
Restarted Server and logged in as sa.
This assumes you have set sa password already using
ALTER LOGIN sa WITH PASSWORD = '<enterStrongPasswordHere>' ;
Upvotes: 0
Reputation: 470
According to: https://msdn.microsoft.com/en-us/library/bb326280.aspx
Go to --> Remot setting
Go to "Remote" tab
in "Remote Assistance", Tick "Allow Remote Assistance connection to this computer", Click the "Advance" button and tick the "Allow..." and in the "Invitation" set the "30 days"
Then in the "Remote Desktop" part
Just tick "Allow remote connection to this computer"
Upvotes: 0
Reputation: 1594
I have not used the script style, but login through GUI I encountered the same error code. I had entered wrong user name
and this is why I was getting the Sql Server, Error: 233
.
In order to resolve this, you should input the following information:
Server Name: MachineName\SQLEXPRESS
Authentication: SqlServer Authentication
User Name: Assigned user-name
or simply sa
Password: xyzpqr
NOTE: Here I have wrote above data for demo purpose only, actual data is your machine & software's properties.
Upvotes: 0
Reputation: 1
I tried most of the solution but was not able to solve it until I found this URL which says to do the following:
Open SQL Server Management Studio and run the these queries:
sp_configure 'show advanced options', 1;
go
reconfigure
go
sp_configure 'user connections', 0
go
reconfigure
go
The reason why we got this error is that the user connections was reset to 1, so only one user was able to connect with the SQL server. just a simple query worked for. I hope this will work for others as well.
Upvotes: 0
Reputation: 1
I got a way to go around the problem.
bingo the sql authenticated instance open .. :)
Actually in this way we cheat the sql authenticated instance as it tries to find an already running instance.. worked fr me.. good luck
Upvotes: 0
Reputation: 168
I had the same issue when i first setup SQL Server 2014 on my local machine. In my case the solution was to set a correct defualt database.
Upvotes: 1
Reputation: 31
I had a similar issue: 1. log in as the master user or windows authenticated user. 2. right click on the database --> properties --> security --> 3. change Windows Authentication mode to "SQL server and windows authentication mode" by clicking on the radio button. (if it is not) 4. restart the server
Upvotes: 1
Reputation: 1
This is might not be a connection issue . Check your default database and if that is online . More commonly this issues seen when the default database will be offline or not exists . If your default database other than master ,better check this option.
Upvotes: 0
Reputation: 1583
I was facing the same error.
I've resolved the error by following below mentioned steps:
I hope this will help someone
Upvotes: 0
Reputation: 1
Login with Administrator in SQL Server Go to Securities >> Logins >> select your user name and go to properties
From Status >> uncheck user account lock check box Change password for the user Restart the sql server and login with your username.
Upvotes: 0
Reputation: 570
It's also possible that you're trying to use SQL Server Authentication without having enabled it. To fix this, right-click Properties on your server instance in SQL Server Management Studio, and update the security settings to include "SQL Server and Windows Authentication mode".
Upvotes: 12
Reputation: 238086
Looks like you're trying to connect using named pipes, but SQL Server is not listening on that protocol. See MSDN.
The two fixes MSDN suggests are:
Upvotes: 3