Sql server management studio ошибка 233

Microsoft SQL server error 233 triggers while users login to an existing database. It happens due to a number of reasons ranging from exceeding the connection limit to firewall restrictions.

As a part of our Server Management Services, we help our Customers to fix database-related errors regularly.

Let us today discuss the possible causes and fixes for this error.

What causes the SQL server error 233?

Users often experience that they are unable to connect to an existing database even after providing the correct login credentials. The error message that they notice may resemble the one given below:

SQL server error 233

The common reasons for the Microsoft SQL server error 233 include;

  1. SQL server not set for Mixed mode
  2. TCP/IP protocol disabled
  3. Shared Memory Protocol disabled
  4. Named Pipes Protocol disabled
  5. Virtual Interface Adapter disabled
  6. View Port in Windows Firewall
  7. Check for Remote Connection
  8. Exceeding the number of Connections

Let us now look into each of these reasons in detail and their fixes.

SQL Server is not set to Mixed Mode

Mixed Mode (SQL Authentication Mode) provides a System Administrator account using a separate user name and password that can also be used to connect to the SQL server in addition to the Windows account. The 233 error can trigger if it is disabled. You can verify the cause of this error by trying to log in to SQL Server Management Studio (SSMS) using the System Administrator account.

1. Log in to SSMS using Windows Authentication.
2. Right-click on the main entry for the server itself and select Properties.
3. In the Properties screen, select Security on the left.
4. Change the Server Authentication setting from Windows Authentication to 'SQL Server and Windows Authentication mode'. Click OK.
5. To apply these settings, restart the SQL Server services by right-clicking on the server's main entry and selecting Restart.
TCP/IP protocol disabled

For SQL Server to be connected properly, TCP/IP should be enabled. It can be enabled using the steps given below:

1. Open MS SQL Server in your system
2. Go to configuration tools, and then open SQL Server Configuration Manager in your system >> SQL Server Network Configuration.
3. Choose TCP/IP option and enable it with a right-click

Finally, restart the SQL Server for the changes to take effect.

Shared Memory Protocol disabled

SQL Server Shared Memory protocol is used by clients to connect to the SQL Server instance that is running on the same machine. Sometimes, the user faces an authentication error, when the Shared Memory protocol is disabled. It can be easily enabled with the steps discussed below:

1. Go to Start → All Programs → MS SQL Server → Configuration Tools → SQL Server Configuration Manager.
2. Choose SQL Server Network Configuration.
3. Then, right-click on the option Shared Memory → Choose Enable.
Named Pipes Protocol disabled

Named Pipes protocols are established for local area networks. In it, a part of memory is used by one procedure to pass the info to another process. It can be on the same system or on a networked system. The user faces this error when the Named Pipes are disabled.The steps to enable it includes:

  1. Open the SQL Server Configuration Manager and Navigate to SQL Server Network Configuration
  2. From the SQL Server Network Configuration go to  Named Pipes Protocol and Enable it.
Virtual Interface Adapter disabled

VIA or Virtual Interface Adapter works with VIA hardware. Users face an SQL error when VIA is not enabled in the system. Thus. to remove an error issue, enable the VIA option from the SQL Server Network Configuration.

View Port in Windows Firewall

SQL Server ports running on the system, are added to exception, and firewall filters all traffic from those ports. SQL Server runs on 1433 port by default but if the default port is changed, then the new port is added to the exception. It can be done with the steps below:

1. First, open Control Panel in your system.
2. Now select Windows Firewall → Change Settings.
3. Click on Exceptions, and then select Add Port.
4. A window will appear, now fill the port number, and click on Ok button.
5. Then, enable the SQL.
Check for Remote Connection

Remote connection is important to connect to the SQL server remotely. Thus, it may trigger the error 233 error on a remote connection. To enable it, follow the steps below:

1. Click on Server node → choose Properties.
2. At left Tab select connection → check the option “allow remote connections to this server”
Exceeding the number of Connections

If the number of connections exceeds the limit, we won’t be able to connect until another connection becomes available. In such cases, it triggers the 233 error. This can be fixed with the following measures:

1. Set the user connections option to 0 to enable the maximum number of allowed connection (which is 32767)
2. Increase the value of user connections so that SQL Server can accept the new connections.
3. You can also close your existing connections so that new connections can be accepted by SQL Server. But this is not a permanent solution.

The changes to the maximum number of allowed connection can be performed from SQL Server Management Studio (SSMS) by following the below steps:

  1. First, connect to SQL Server Instance in SSMS.
  2. Next, right-click on SQL Server Instance in SSMS and choose properties. The Server Properties window will appear to make server-level changes.
  3. Click on the “Connections” tab from the left side pane. Set this value to 0 to accept the maximum number of allowed connections or increase the value to fix the error.
  4. Finally, restart the server to apply this change into effect.

[Need any further assistance in fixing database errors? – We’re available 24*7]

Conclusion

In short, Microsoft SQL server error 233 triggers while login to an existing database. It happens due to a number of reasons ranging from exceeding the connection limit to firewall restriction. Today, we saw how our Support Engineers fix this error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

5 Ways to Fix Microsoft SQL Server Error 233

Workable Solutions Step-by-step Troubleshooting
Fix 1. Enable TCP/IP

Open MS SQL Server. Go to configuration tools, and then open «SQL Server Network Configuration»…Full steps

Fix 2. Enable Shared Memory 

Shared Memory Protocol is used for connecting SQL Server, if it is disabled, it may lead to SQL Server login failed error 233…Full steps

Fix 3. Enable Named Pipes Protocol

Run MS SQL Server. Go to configuration tools, and then open «SQL Server Network Configuration»…Full steps

Fix 4. Check for Remote Connection

Connect to SQL Server Instance in SSMS on a database server. Right-click on the Server instance…Full steps

Fix 5. Repair the MS SQL Database

Launch EaseUS MS SQL Recovery. Select the corrupted database file. Then, click the «Repair» button…Full steps

Overview of SQL Server Error 233

SQL Server error 233 was saying «No process is on the other end of the pipe». The error details are given as:

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)

ms sql error code 233

SQL Server Error Code 233 Causes

No process is on the other end of the pipe error 233 is often caused by two reasons:

  • The client attempts to connect with only named pipes and the named pipes protocol is not enabled on the server.
  • The client attempts to connect with any available protocol, but named pipes are listed before TCP in the client protocol order.

According to the two reasons above, you can fix error 233 easily. 

Fix 1. Enable TCP/IP to Solve SQL Server Error 233

If the client is attempting to connect using named pipes, and the server is not configured to allow remote connections using named pipes, follow this:

Step 1. Open MS SQL Server. 

Step 2. Go to configuration tools, and then open «SQL Server Network Configuration» in SQL Server Configuration Manager.

Step 3. Choose «TCP/IP» option and enable remote connections using named pipes.

If the client protocol order is attempting to connect with the named pipes protocol before trying the TCP protocol, and named pipes are not enabled on the server, solve this problem by following this:

Using SQL Server Configuration Manager on the client computer, move TCP before named pipes in the protocol order list.

Fix 2. Enable Shared Memory 

Shared Memory Protocol is used for connecting SQL Server, if it is disabled, it may lead to SQL Server login failed error 233.

Step 1. Open MS SQL Server in your system.

Step 2. Choose «Configuration Tools» and «SQL Server Network Configuration».

Step 3. Then, find and right-click «Shared Memory». Choose «Enable».

Fix 3. Enable Named Pipes Protocol to Solve SQL Error 233

SQL Server error 233 occurs because the SQL Server client cannot connect to the server and is not configured to accept remote connections. To fix this issue, except for enabling Shared Memory and TCP/IP, we still need to activate Named Pipe protocols with SQL Server Configuration Manager tool.

Step 1. Run MS SQL Server. 

Step 2. Go to configuration tools, and then open «SQL Server Network Configuration» in SQL Server Configuration Manager.

Step 3. Launch the Properties windows of Named Pipes Protocol then click «Enable». 

Step 4. Click «Apply» and «OK»  to apply this change on SQL Server.

You have required to restart SQL Server services from the SQL Server Configuration Manager. Once the server is online, try to reconnect to your SQL Server instance. Then, the error 233 may not appear and you will be able to make a successful database connection.

Fix 4. Check for Remote Connection

After these workarounds, if you are still facing Microsoft SQL Server error 233 no process is on the other end of the pipe, then you will need to allow remote connection for SQL Server. 

Step 1. Connect to SQL Server Instance in SSMS locally on a database server.

Step 2. Right-click on the Server instance name and choose «Properties».

Step 3. At the left tab, select «connection» then check the option «Allow remote connections to this server».

Fix 5. Repair Corrupted MS SQL Database to Resolve SQL Error 233

If you are still facing the same issue, the cause might be the database itself. MS SQL Server is vulnerable to different threats and errors (823/824/825). Repairing the database can do you a favor. EaseUS MS SQL Recovery is a very professional and reliable SQL repair tool. It can recover database components (tables, triggers, indexes, keys, rules, and stored procedures) as well as recover deleted records from the SQL database. It supports MS SQL Server 2016, 2014, 2012, 2008, and older versions. Follow the details below and fix your database error.

Step 1: Select the corrupted database for recovery

  • Launch EaseUS MS SQL Recovery.
  • Select the corrupted database file by clicking «Browse» (the two dots) or «Search».
  • After selecting the file, click the «Repair» button to start the Analyzing process. 

select the SQL database file

Note: To use this software, you need to stop the SQL Server service.

Step 2: Repair the corrupted database

  • The software displays all the recoverable items in a tree-like structure. The items are shown in a left pane.
  • Select the desired component to be recovered. From the window, click the «Export» button. 

Select the database objects

Step 3: Export to the database or as scripts

  • Choose to export the database objects to database or export the items as scripts
  • If you choose «Export to database», enter the information required and choose the target database.

export the SQL database objects

  • A window appears up asking you to provide credentials to connect to the server and the destination to save the recovered items. In order to begin the repairing process, click «OK». 

Note: Before clicking «OK», you need to restart the SQL Server service.

Though the EaseUS SQL repair tool should succeed in resolving the error, in the rare event that it can’t, you should then contact Microsoft customer support for professional assistance.

Conclusion

In this article, we have discussed SQL Server error 233 no process is on the other end of the pipe in detail, including error explanation, causes, and all the feasible solutions. If you run into this error, don’t panic, utilize any methods above, i.e. enable Shared Memory, TCP/IP, and Named Pipe protocols to let SQL Server client connect to the server or use a reliable SQL recovery software to restore (.mdf and.ndf) files, fix database log files, or recover corrupted objects.

We hope this tutorial can help you to resolve the SQL login failed error 233.

“SQL Server Login Failed Error 233” is Easy to Fix Using These Solutions

SQL Server Login Failed Error 233

While accessing the DB sometimes user faces the situation when they logging into SQL Server Authentication mode, and it displaying the error message as shown below. Moreover, users also face several errors other than SQL server error 233 like Error 26. Error 40, Error 3271, etc. This is called SQL Server Login Failed Error 233 :

Table of Content

  • SQL Server Error 233 Quick Steps
  • Error 233 Walkaround
  • TCP / IP
  • Shared Memory Protocol
  • Named Pipes Protocol
  • Virtual Interface Adapter
  • View Ports in Windows Firewall
  • Remote Connection Check
  • Conclusion
  • FAQs

SQL Server Error 233

Fix SQL Server Error 233 in 6 Quick Steps

  • Enable TCP/IP in SQL configuration manager.
  • Now, Enable the Shared Memory Protocol.
  • At this step, Enable Named Pipes Protocol.
  • Enable the (VIA) Virtual Interface Adapter.
  • Add Correct Port in Windows Firewall.
  • Simply Allow the Remote Connections.

We can overcome the issue faced by users while authenticating the SQL Server through common fixes. There are some of the possible ways, which helps user to resolve the SQL server error 233 by checking and enabling the following settings in SQL Configuration Manager as discussed below:

1. TCP/IP

There are two or more SQL Servers, which are associated across network. Then, all the communication is done by using TCP/IP protocol. There is a default port for SQL Server Installation, i.e. 1433. This port can be changed if required through SQL Server Configuration Manager. For SQL Server to be connected properly, TCP/IP should be enabled. Follow the steps given below to solve Microsoft SQL server error 233 safely.

  1. Open MS SQL Server in your system
  2. Go to configuration tools, and then open SQL Server Configuration Manager in your system >> SQL Server Network Configuration.
  3. Choose TCP/IP option and enable it with a right-click

After completing the procedure, restart the SQL Server for the changes to take place.

2. Shared Memory Protocol

The Shared Memory Protocol is used for connecting SQL Server, which is running on the same system. It is not useful for most of the database activity. Sometimes, the user faces an authentication error, when Shared Memory protocol is disabled. It can be easily enabled with the few possible steps as discussed:

  1. Go to StartAll ProgramsMS SQL ServerConfiguration ToolsSQL Server Configuration Manager.
  2. Choose SQL Server Network Configuration.
  3. Then, right-click on the option Shared Memory → Choose Enable.

3. Named Pipes Protocol

Named Pipes protocols are established for local area networks. In it, a part of memory is used by one procedure to pass the info to other process. Another way can be on the same system or on a networked system. User faces this SQL server error 233 because the Named Pipes are disabled, so to enable it user can follow the same procedure as mentioned above by opening the SQL Server Configuration ManagerSQL Server Network Configuration Named Pipes ProtocolEnable.

4. Virtual Interface Adapter

VIA is Virtual Interface Adapter, which works with VIA hardware. Even, the user faces an error when VIA is not enable in your system. So, to remove the Microsoft SQL server error 233 issue, enable the VIA option from the SQL Server Network configuration.

5. View Port in Windows Firewall

Windows Firewall acts like a wall in between the server and your system, to protect from all malicious attacks. However, various ports and services are refrained by default from firewall. Even SQL Server ports are not viewed in firewall.

SQL Server ports are running on the system, are added to exception, and then firewall filters all traffic from those ports. SQL Server runs on 1433 port by default but if the default port is changed, then the new port is added to the exception. It can be done following the step:

  1. First, open Control Panel in your system.
  2. Now select Windows Firewall → Change Settings.
  3. Click on Exceptions, and then select Add Port.
  4. A window will appear, now fill the port number, and click on Ok button.
  5. Then, enable the SQL.

6. Check for Remote Connection

To enable the remote connection is also important. If this feature is turned off, then SQL Server will work properly on your system but if your feature is on then, follow the steps given below & get rid of SQL server error 233 smartly:

  1. Click on Server node → choose Properties.
  2. At left Tab select connection → check the option “allow remote connections to this server”

Conclusion

In the above discussion, there are some relevant solutions discussed to remove the SQL Server Authentication Error 233. If the user still faces an error, then they can utilize an alternate method, i.e. use sqlbrowser.exe. It is another way to prevent the occurrence of this error by simply searching sqlbrowser.exe on the drive where SQL Server is installed. Then, copy the path of sqlbrowser.exe and create an exception of that file on Firewall. It helps to resolve the SQL login failed error 233.

Also Read: SQL Server Does Not Exist or Access Denied – Best Solution

FAQs

Q-1. What is error 233 in SQL Server?

Ans. SQL Server error 233 occurs when the client is unable to connect to their SQL Server. It occurs due to several reasons but mainly when remote connections aren’t allowed.

Q-2. How to enable TCP/IP in SQL Server?

Ans. Follow the simple steps to enable TCP/IP:

  • Open the SQL Configuration Manager.
  • Select SQL Server Network Configuration
  • Select Protocol option
  • Enable TCP IP protocol.

Q-3. How to configure SQL Server to accept remote connections?

Ans. Open SQL Server Management Studio & follow these steps:

  • Open Object Explorer.
  • Right Click Server & Select Properties.
  • Choose the Connections Mode.
  • Go to Remote server connections.
  • Select Allow Remote Connections.

Q-4. How do I open port 1433 in SQL Server?

Ans. Evidenty, Connect SQL Server & Open Windows Firewall. Click Inbound Rules & Select the New Rules option. Select Port Type & Rules & then Specify 1433 and 1434 ports.

Today, I got SQL Server error 233 no process is on the other end of the pipe while connecting to one of the SQL Server instance using SSMS client. SQL Error 233 was saying No process is on the other end of the pipe and its details are given as:

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)

You can see the screenshot of this error that I had received while making a database connection.

Error 233

SQL Server Error 233 No process is on the other end of the pipe – Root Cause

Above SQL error 233 suggests the provider name as Shared Memory Provider. We know Shared Memory is a protocol used in SQL Server along with TCP/IP and Named pipe. We decided to check the settings and values for all protocols in SQL Server Configuration Manager.

I launched SQL Server Configuration manager and expanded SQL Server Network Protocols from left side pane. Here, you can see an option “Protocols for MSSQLSERVER”.  MSSQLSERVER is the name of SQL Server Instance as default instance has been installed there. If you have named instance installed on your machine then you might get “Protocols for <INSTANCENAME>.

Now click on this option “Protocols for MSSQLSERVER”, you can see all three protocols used in SQL Server in right side pane as shown in below image.

SQL Server Configuration Manager to check Protocols

Here we can see Shared Memory protocol is set as Enabled but Named Pipes is set as Disabled that should be enabled to make successful database connection. This was the main reason for getting this error. Keep reading this article to fix this issue in next section.

I have also written another aspect of SQL Server Error 233 in below article. You might get this error if your SQL Server Instance has exceeded the total number of user connections set in server configurations. Have a look at this article as well.

  • Fix SQL Server Error 233: User Connections Server Configuration option in SQL Server

Solution

We get error 233 ( SQL Server no process is on the other end of the pipe )because SQL Server client cannot connect to the server. This error could occur because the server is not configured to accept remote connections. To fix this issue, we will use the SQL Server Configuration Manager tool to allow SQL Server to accept remote connections. Here, in our case one of the protocol Named Pipe was disabled that’s why we were getting error. We will go ahead and fix this issue by enable the Named Pipe protocol. You might get this issue due to any protocol being disabled.

Make sure to enable Shared Memory, TCP/IP and Named Pipe protocols. Launch SQL Server Configuration Manager. Expand SQL Server Network Configuration from left side pane and click on Protocols for MSSQLSERVER. MSSQLSERVER is SQL Server Instance name. Now you will see all protocols in to right side pane. Right click on given protocols that is disabled and select Enable button to enable that protocols.

Named Pipe protocol was disabled in my case so I have launched Properties window of this protocol and selected Enabled option as Yes from dropdown as shown in below screenshot. Now click on Apply and Ok button to apply this change on SQL Server. It will ask you to restart the SQL Server service to apply these changes in to effect. Restart SQL Server services from SQL Server Configuration manager. Once services will come online, try to connect to your SQL Server instance, this time you will not face error 233 and you will be able to make successful database connection.

Enable Named Pipe Protocol

If you are still facing same issue ( no process is on the other end of the pipe )then you can also check “Allow Remote Connections” settings for this SQL Server instance. This setting must be enabled to connect to databases remotely. Connect to SQL Server Instance in SSMS locally on database server. Right click on SQL Server instance name in SSMS and choose Properties. You will get Server properties window. Click on Connections from left side pane and tick the check box on Allow remote connections to this server option from right side pane.

I hope you like this article. Please follow our Facebook page and Twitter handle to get latest updates.

Read More Articles on SQL Server Connection Issues:

  • Fix SQL Server Network Interfaces Error 28: Server doesn’t support requested protocol
  • Error 40: A network-related or instance-specific error occurred while establishing a connection to SQL Server
  • Fix Error 53: Could not open a connection on SQL Server
  • Fix Error 4064: Cannot open user default database
  • Error 233: How to set the user connections server configuration option in SQL Server
  • Author
  • Recent Posts

Manvendra Deo Singh

I am working as a Technical Architect in one of the top IT consulting firm. I have expertise on all versions of SQL Server since SQL Server 2000. I have lead multiple SQL Server projects like consolidation, upgrades, migrations, HA & DR. I love to share my knowledge. You can contact me on my social accounts for any consulting work.

Manvendra Deo Singh

Summary

Article Name

Fix Error 233: No process is on the other end of the pipe

Description

Today, I got an error 233 while connecting to one of my database server. Error 233 was saying “No process is on the other end of the pipe”. The error details are given as: 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)

In the past couple of weeks I’ve ran into a few situations where users working on development instances ended up accidentally limiting the number of concurrent user connections that SQL Server can handle.
This, in turn, caused the developers to not be able to log into SQL Server when the number of connections went past the newly set limit.

I figured I’d write this post to outline how to troubleshoot and fix this in case anyone else has a similar issue.

What are user connections?

Basically any application connecting to an instance uses up at least one user connection slot. Take SSMS for example, just connecting to an instance, without opening a query editor window, will take up 2 user connections (one for Object Explorer and one for retrieving instance info and IntelliSense data) with each query editor window taking up one connection slot.

As per the official documentation, SQL Server allows a maximum of 32,767 concurrent user connections, but the actual number depends also on the hardware resources available on the instance’s host.

Checking and changing the maximum number of connections

The default maximum number of concurrent user connections is 0 which means unlimited.

There are two ways of checking and/or changing this limit, both of which require an instance restart to take effect:

Warning: don’t go changing this configuration option in production since it will end up causing an outage once the applications relying on those instances will hit the newly imposed limit.

From the GUI, by right clicking on the instance in object explorer, click on Properties and the option is the first one in the Connections section.

Window title: Server Properties - Winsrv2k22\SQL2019 Section: Connections Contents: Connections Maximum number of concurrent connections (0 = unlimited). Textbox: 0 SEO SQL Server connection error 64 233

Or via T-SQL using the following query to check the value:

SELECT [name],

       [value],

       [value_in_use],

       [description],

       [is_dynamic],

       [is_advanced]

FROM   [sys].[configurations]

WHERE  [name] = N‘user connections’;

SSMS result set for the above query. name : user connections value : 0 value_in_use : 0 description : Number of user connections allowed is_dynamic : 0 is_advanced : 1

Notice that this configuration option is not dynamic (is_dynamic is 0) and that’s why it requires an instance restart.

Since it’s also an advanced option, using sp_configure requires 2 additional steps to enable and afterwards disable the option to show advanced options.

The following block of T-SQL will set the max number of concurrent user connections to 10:

EXEC sys.sp_configure N‘show advanced options’, N‘1’

GO

RECONFIGURE WITH OVERRIDE

GO

EXEC sys.sp_configure N‘user connections’, N’10’

GO

RECONFIGURE WITH OVERRIDE

GO

EXEC sys.sp_configure N‘show advanced options’, N‘0’

GO

RECONFIGURE WITH OVERRIDE

GO

For example’s sake I’ve set the limit to 2 on my environment.

So what happens when attempting to connect?

The connection attempt will fail with error code 233 or 64, but the error message and occasionally the behavior depends on a few factors:

  • connection attempt to a remote or local instance through TCP
  • connection attempt to a local instance through Shared Memory
  • all connection slots already in use when trying to connect
  • Object Explorer takes the last available connection slot and the query editor is left hanging

In my test, I’ve made sure that all the connection slots are taken before trying to connect via SSMS to a remote instance.

TITLE: Connect to Server ------------------------------ Cannot connect to Winsrv2k22\SQL2019. ------------------------------ ADDITIONAL INFORMATION: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) (Microsoft SQL Server, Error: 64) For help, click: https://docs.microsoft.com/sql/relational-databases/errors-events/mssqlserver-64-database-engine-error ------------------------------ The specified network name is no longer available ------------------------------ BUTTONS: OK ------------------------------ SEO SQL Server connection error 64 233

Error text:
“A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 – The specified network name is no longer available.) (Microsoft SQL Server, Error: 64)”

Other error messages

In the case of a local connection through shared memory when no more connection slots are available, the error message would be:
“The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: Shared Memory Provider, error: 0 – No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)”

When connecting through SSMS and Object Explorer takes up the last connection slot, the error occurs when opening a query editor window or checking an object’s properties.
And for the same scenario, but Shared Memory is enabled and the instance is local, then the error message would look like this:
“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)”

Troubleshooting and fixing

The fix requires access and admin permissions on the host where the instance resides.

First, I find out the instance’s service name through either SQL Server Configuration Manager or through Services Manager (WinKey+R -> services.msc -> Enter).

Afterwards, I stop the service from either PowerShell or Command Prompt opened as Admin.

net stop «SQL Server (SQL2019)»

Administrator: Command Prompt C:\Windows\system32>net stop "SQL Server (SQL2019)" The SQL Server (SQL2019) service is stopping. The SQL Server (SQL2019) service was stopped successfully.

Then, I start it back up in single user mode (via the /m flag) and specify that only sqlcmd is allowed to connect. Since I’m doing this in command prompt, I use && to also connect through sqlcmd as soon as the service is running.

net start «SQL Server (SQL2019)» /m«SQLCMD» && sqlcmd S localhost\sql2019 E

Administrator: Command Prompt C:\Windows\system32>net start "SQL Server (SQL2019)" /m"SQLCMD" && sqlcmd -S localhost\sql2019 -E The SQL Server (SQL2019) service is starting. The SQL Server (SQL2019) service was started successfully. 1>

Once the connection is established, I am able to update the max number of concurrent user connection to its default value.

EXEC sys.sp_configure N‘show advanced options’, N‘1’

GO

RECONFIGURE WITH OVERRIDE

GO

EXEC sys.sp_configure N‘user connections’, N‘0’

GO

RECONFIGURE WITH OVERRIDE

GO

EXEC sys.sp_configure N‘show advanced options’, N‘0’

GO

RECONFIGURE WITH OVERRIDE

GO

I then disconnect from sqlcmd and restart the instance without the /m flag so that the changes take effect and it’s no longer in single user mode.

net stop «SQL Server (SQL2019)»

net start «SQL Server (SQL2019)»

Conclusion

Avoid messing around with the value of the user connections limit, especially since there’s very rarely a valid reason for changing it.

Понравилась статья? Поделить с друзьями:
  • Sql server 2008 ошибка 3417
  • Sql server 2012 ошибка входа пользователя
  • Sql server 2008 ошибка 18456
  • Sql server management studio журнал ошибок
  • Sql server 2008 r2 ошибка 233