Unable to access an instance of SQL Server 2008 R2 remotely

后端 未结 2 1495
不知归路
不知归路 2020-12-11 17:49

A very mysterious problem coming up :P

I have a server configured with a static IP. I have installed SQL Server 2008 R2 with additional instance (ITAPP). Now When I

相关标签:
2条回答
  • 2020-12-11 18:29

    The SQL Server Browser service needs to be accessible to be able to connect to named instances.

    See this article for more info on what it does and which ports to open on your firewall

    This technet article provides a handy script to open up all required ports

    0 讨论(0)
  • 2020-12-11 18:33

    maybe it's because it's a named instance on a remote server.
    Named instance don't use the SQL Server standard Tcp-port 1433, only the default (unnamed) instance use the 1433 port.
    Any other "named" instance simply listen on another port.
    So you should check in the SQL-Server configurator, on which TCP port is listening, and then tell the client to connect to this port.
    Say that your named instance is listening to 12345 port, then the client should connect using the following command

    sqlcmd -S XXX.XXX.XXX.XXX,12345 -U sa -P mypass
    

    when you specify the TCP port, then you don't need the name of the instance.
    In my understanding the name of the instance is a way for SQL Server services to find the TCP port that this named instance is listening on.
    But for this to work your client need to be able to access those other services that resolve the instance name of SQL Server (maybe it's the Sql server Agent / SQL Server browser, but I'm not sure)

    Update
    Here is a screenshot that show where to set the TPC port for a SQL Server named instance. How to check the TPC listening port of a SQL Server named instance

    so, on which TCP port is your named instance of SQL Server listening?

    0 讨论(0)
提交回复
热议问题