How to resolve "[TCP/IP Sockets]Specified SQL Server not found" error when setting up System DSN|ODBC Connection for TIBCO Statistica Database?

How to resolve "[TCP/IP Sockets]Specified SQL Server not found" error when setting up System DSN|ODBC Connection for TIBCO Statistica Database?

book

Article ID: KB0073150

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.0 and higher

Description

Migrating a TIBCO Statistica database from one SQL server to another, as described in KB article 000032602 ("How to use the Database Migration Utility in Statistica Enterprise?"), requires that we set up System DSN connection to the destination SQL server first. 

During this process the error message appears:
User-added image

Issue/Introduction

This article explains the steps necessary in order to resolve the "SQL Server does not exist or access denied" error that can appear when setting up an ODBC DSN for a TIBCO Statistica database.

Environment

Windows OS

Resolution

RESOLUTION 1

1). Go to Start Menu and on the list of all available programs, start Microsoft SQL Server [version]|SQL Server [version] Configuration Manager;

2). Once you've opened the SQL Server Configuration Manager on your destination SQL Server environment, go to SQL Server Network Configuration | Protocols for MSSQLSERVER:
User-added image

3). Open the Protocols settings and make sure that TCP/IP and Named Pipes Protocols are enabled:
User-added image

4). Dynamically determined TCP/IP ports and Named Pipes are now enabled and opened for communication with your destination SQL server (as shown in the ODBC Connection set up):
User-added image User-added image

5). Using either connection type should work, the error is resolved and you should be able to proceed with System DSN configuration:
User-added image

RESOLUTION 2

Typically SQL Server uses TCP port 1433, which may be blocked by a firewall. There may be other ports that need to be opened, depending on how SQL Server is configured. For more information see  https://docs.microsoft.com/en-us/sql/sql-server/install/configure-the-windows-firewall-to-allow-sql-server-access?view=sql-server-2017

If the correct ports have been opened in the firewall but there is still connection issue, then turn off the firewall or configure the firewall to "allow all traffic". Then test the DSN connection again to see if it is successful. If the connection is successful, then the firewall is blocking a necessary port/protocol to connect to SQL Server. If the DSN connection fails after opening the firewall, the firewall is not the cause of the connection issue. 

If the firewall is the issue, we can turn on logging for dropped ports. See
https://www.howtogeek.com/220204/how-to-track-firewall-activity-with-the-windows-firewall-log/