Wednesday, April 23, 2008

com.microsoft.sqlserver.jdbc.SQLServerException

Error while connecting to MS SQL Server 2005 database from a Java client
"com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection refused: connect"
Solution : This happends besause TCP/IP is not enable. You need to enable the protocol and RESTART the "SQLServer" services.

No comments: