- Plesk for Windows
- Microsoft SQL server is shown as disconnected (there is no green checkmark next to the server name) in Plesk in Tools & Settings > Database Servers:
PLESK_WARN: Warning: Unable to determine the TCP port number used by Microsoft SQL server '.\\MSSQLSERVER2014': 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.
The following error appears in Event Viewer > Plesk:
CONFIG_TEXT: SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF]. A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online. Login timeout expired
at (VADOConnection::open line 48)
The following error appears when trying to change the password for
sauser in Tools & Settings > Database Servers:
PLESK_ERROR: Error: The test connection to the database server has failed because of network problems:
Try to establish connection failed
An instance of MS SQL Server is not configured to use static ports.
Note: if Microsoft SQL server is shown as connected, the warning can be ignored. However, it is still better to define exact port, to avoid connection issues in future.
Connect to the server using RDP.
Go to Start > SQL Server XXXX Configuration Manager (where XXXX is a version of MS SQL Server).
Follow the steps from the Microsoft documentation article Configure a Server to Listen on a Specific TCP Port to configure MS SQL Server instance to use static ports.
Note: During configuring, do not forget to remove the values from the fields TCP Dynamic Ports, and set a specific TCP Port for every IP address used.
Here is an example:
Go to Tools & Settings > Database Servers > MS_SQL_Server_name > Settings.
Specify the port number (which was set in the SQL Server Configuration Manager) in the field Host name or IP address as shown on the screenshot:
Note: Make sure there's no space in the textbox of
Host name or IP address.
If SQL Server is configured with the different name in SQL Server Management Studio, specify the appropriate name, as for example: '
Click OK to save the changes.