Hi @KJP
The error usually means that the “SQL server is not found” or “TCP port is either unknown or wrong”, or it can be blocked by the “firewall”.
Follow the below steps to see if you can resolve the issue.
Step 1 - Check that you can ping the SQL Server box.
Step 2 - Check that the SQL Services are running.
Step 3 - Check that the SQL Server Browser service is running
Step 4 - Check that you are using the correct SQL Server instance name
Step 5 - Check that you can find the SQL Server
Step 6 - Check that TCP/IP and Named Pipes are enabled
Step 7 - Check that allow remote connections for this server is enabled
Step 8 - Check the port number that SQL Server is using
Step 9 - Check that the firewall is not blocking access to SQL Server
Step 10 - Check that the Service Principal Name has been registered.
Refer to this article for more details: Resolving could not open a connection to SQL Server errors.
Also, see this blog which might help: How to Fix the Error ‘A Network-related or Instance-specific Error occurred while Establishing a Connection to SQL Server’ ?
Best regards,
Cosmog Hong
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.