【问题标题】:Adding a connection to a SQL Server 2008, what do I need to open up?添加到 SQL Server 2008 的连接,我需要打开什么?
【发布时间】:2012-09-13 19:16:12
【问题描述】:

我正在尝试将 Visual Studio 2010 中的数据连接添加到给定 IP(通过 Internet)的 SQL Server 2008 数据库。我需要打开和转发哪些端口才能让奇迹发生?

我需要在 SQL Server 中进行任何设置以允许外部连接吗?

【问题讨论】:

    标签: visual-studio-2010 sql-server-2008 firewall portforwarding windows-firewall


    【解决方案1】:

    到 sql server 配置管理器检查正在使用的端口并打开该端口。

    另外,在 Sql Server Management Studio 上,右键单击实例 -> 属性 -> 连接 -> 选中“允许远程连接到此服务器”。

    【讨论】:

      【解决方案2】:

      端口 1433 是默认使用的端口。

      更多详情请见TCP/IP port numbers required to communicate to SQL over a firewall

      默认的 SQL Server 端口是 1433,客户端端口被分配一个介于 1024 和 5000 之间的随机值。

      还有:

      端口不必是 1433,但 1433 是 SQL Server 的官方 Internet 号码分配机构 (IANA) 套接字号。

      【讨论】:

        猜你喜欢
        • 2019-03-08
        • 2018-01-04
        • 1970-01-01
        • 2012-10-18
        • 2019-06-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多