如何查看sql server端口号 通过sql server配置管理器-->sql server网络配置-->选择-->通过右侧选择TCP/IP(已启用)-->查看属性 还可以通过sql语句查看: exec sys.sp_readerrorlog 0, 1, 'listening'