Select Page

Art of BI: SQL Exception: The TCP/IP Connection to the host has failed.

Author: Christian Screen | 1 min read | July 7, 2009

Recently when configuring a JSP page based on Venkat’s walk-through of linking an HFR report to an OBIEE answers report we bumped into the following error when trying to access our SQL Server database. It turns out this error is caused when TCP/IP to the SQL Server server instance has been disabled. It is actually disabled by default. Below are the steps to resolve the issue. Once we’ve enabled TCP/IP our JSP page using the JDBC call worked like a charm.

Here is the error:

jdbc_error_in_page_cropped

Open your SQL Server Configuration Manager (Programs > Microsoft SQL Server 2005 > Configuration Tools > …)

ssms_config_mgr

In Configuration Manager, expose the Network Configurations

access_msss_configuration_manager

Right-Click on the TCP/IP item to select it and in the menu click on “Enable”

enable_configuration_mgr_tcpip

Refresh your page and all should be a go.

Subscribe to Our Blog

Never miss a post! Stay up to date with the latest database, application and analytics tips and news. Delivered in a handy bi-weekly update straight to your inbox. You can unsubscribe at any time.