SQL Server 2005 Express默认本地访问,不能远程访问。
首先通过SQL Server Configuration Manager 设置TCP/IP 端口, enable, listen all=Yes
修改 SQL Server 2005 Surface Area Configuration - > Surface Area Configuration for Services and Connections -> Remote Connections 设置为 Local and remote connection - Using both TCP/IP and anmed pipes
重起服务器。
使用netstat命令监测端口
netstat -na
或者 netstat -aon |findStr 1433