- Plesk for Windows
- Microsoft SQL server is shown as disconnected in Tools & Settings > Database Servers (there is no green checkmark next to the server name)
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.
Error 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)
Cannot 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
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 and follow video tutorial:
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:
- remove the values (including zeroes) from the TCP Dynamic Ports of IPv4 address and "IPv4"
- remove the value (including zeroe) from the TCP Dynamic Ports of IPAll section
- set specific port for the TCP Dynamic Ports of IPAll section:
Go to Tools & Settings > Database Servers > MS_SQL_Server_name > Settings and click OK to re-apply them.