- 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.
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.
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 sa user 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.
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.
Here is an example:
If after applying the above solution the warning is still shown in Plesk in Tools & Settings > Database Servers, follow the below steps:
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:
If SQL Server is configured with the different name in SQL Server Management Studio, specify the appropriate name as .\NAME\SQLEXPRESS
Click OK to save the changes.