The following warning message is shown in Plesk at Tools & Settings > Database Servers:
Warning: Unable to determine the TCP port number used by Microsoft SQL server '.MSSQLSERVER2019': TCP/IP protocol is not enabled in the server network configuration or the server is configured to use dynamic TCP ports.
To allow your customers to automatically configure firewall for remote database access, manually configure the SQL server to listen on a specific fixed TCP port.
It is not possible to connect to a Microsoft SQL Server remotely using Microsoft SQL Server Management Studio with the error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 28 - Server doesn't support requested protocol) (Microsoft SQL Server, Error: -1)
Microsoft SQL Server is not configured to use a static port.
Connect to the Plesk server via RDP.
Go to Start > All Programs > Microsoft SQL Server XXXX > SQL Server XXXX Configuration Manager.
Note: XXXX is a version of MS SQL Server from the error message.
Expand SQL Server Network Configuration and click Protocols for MSSQLSERVERXXXX.
Double-click on TCP/IP:
4.1. On the Protocol tab, make sure that the TCP/IP protocol is Enabled.
4.2. Switch to the IP Addresses tab and scroll down to the IPAll section.
4.3. Specify default MS SQL port number 1433 (or a custom port number if 1433 is already used by another MS SQL Server instance) in the TCP Port field
Note: The specified MS SQL port must be opened in firewall.
4.4. Click OK.
Go to SQL Server Configuration Manager (Local) > SQL Server Services,
Right-click on SQL Server (MSSQLSERVERXXXX) and click Restart to apply the changes.
Go to Tools & Settings > Database Servers > .MSSQLSERVERXXXX > Settings and click OK to sync new settings with Plesk.
If you use Microsoft SQL Server Management Studio to connect to an SQL Server with a custom port, specify this port after a comma: 203.0.113.2,1433.