用iBatis连SQLServer2008,而且给的不是一个机器的IP我该怎么连?
用IP连2005是能连上的,就是连2008连不上
这个连2005没有问题 
url=jdbc:sqlserver://10.195.20.77:1433;databaseName=SCT;这个连2008怎么都连不上
url=jdbc:sqlserver://SCDR\CTS:1433;databaseName=SCT;这个地方要怎么写啊??

解决方案 »

  1.   

    SQL Server Management Studio Express 是可以连上的。报错如下:db.exceptions.DBException: The TCP/IP connection to the host xx.xx.xx.xx,port 1433 has failed. Error:Connection timed out:connect. Please verify the connection properties and check that a SQL Server instance is running on the host and acception TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.