First I was facing a network issue whenever I was trying to connect to my remote SQL Server. Some times the error was not shown and connected successfully but sometimes it was giving me this kind of error so to resolve this issue, I googled and found this video. I followed that instructions.
BUT I also did one mistake is that in SQL Server properties, I changed Concurrent user to 1. I overlooked the note above that field written is 0=unlimited
.
After applying changes, my first problem not solved but other problem arise that now it is giving me error like A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)
Even admin is not allowed to login to the server. And our work has stopped. So please help me how to change concurrent users back to 0 ?
EDIT
- In services -> SQL Server Browser was disabled. I enabled it from properties and started that service.
- SSMS -> Propertie -> Ensured authentication is set to SqlServer/Windows Authentication mode and restart connection.
- Again in Properties -> connection tab checked 'Allow remote connection' checkbox. And here I made the mistake I change 'Maximum Number of concurrent connections to 1' and set timeout to 0 which was 600 earlier.
- Windows+R -> type SQL Server Manager 11.msc (11 is the version of sql server) -> In configuration, 'Named Pipes' and 'TCP/IP' both were disabled. so I enabled from properties. Actually in video, In TCP/IP, he said set yes to both Active and Enabled. but in Enabled I was unable to change it as it did not show any dropdown.
- In that window got to SQL Server Services tab and restart the service.
Thank you