SQL Server2000所使用的所有端口:
- SQL Server服务使用两个端口:TCP-1433、UDP-1434。其中1433用于供SQL Server对外提供服务,1434用于向请求者返回SQL Server使用了那个TCP/IP端口。
- SQL Server Agent服务使用TCP-1625、TCP-1640端口提供服务。
- SQL 查询分析器通过1601端口访问1433,连接SQL Server。
另外在网上查到SQL Server2005使用的端口,无相关解释:
- Port 1433 (UDP/TCP) SQL Server Engine
- Port 1434 (UDP/TCP) SQL Server Engine
- Port 2382 (UDP/TCP) SQL Server OLAP
- Port 2383 (UDP/TCP) SQL Server OLAP
- Port 2393 (UDP/TCP) SQL Server OLAP
- Port 2394 (UDP/TCP) SQL Server OLAP
- Port 2725 (UDP/TCP) SQL Server OLAP
- Port 3882 (UDP/TCP) SQL Server DTS (Integration Services)
若你的SQL服务器有安装防火墙,又希望SQL所有的服务可以正常使用,那就把以上的所有端口开启好了。
另:更改SQL Server 2005 默认端口的方法(这个和更改2000的方法不一样):
- In SQL Server Configuration Manager, expand SQL Server 2005 Network Configuration, and then click on the server instance you want to configure.
- In the right pane, double-click TCP/IP.
- In the TCP/IP Properties dialog box, click the IP Addresses tab.
- In the TCP Port box of the IPAll section, type an available port number. For this tutorial, we will use 1500.
- Click OK to close the dialog box, and click OK to the warning that the service must be restarted.
- In the left pane, click SQL Server 2005 Services.
- In the right pane, right-click the instance of SQL Server, and then click Restart. When the Database Engine restarts, it will listen on port 1500.
再另:查看电脑上已经开启了的端口的方法:
开始->运行->输入cmd->输入命令netstat -an->回车即可看到。


