在亚马逊AWS VPC,我试图在SQL Server中设置复制,并有三个服务器端口1433 RDP打开(1networking,两个SQL)设置。 我可以将RDC放入每台服务器。 从Web服务器,我可以通过使用IP地址通过SSMS连接到两个SQL Server。 但是,我无法连接到他们的服务器名称。 这通常不会是一个问题,但在尝试设置复制订阅服务器时,我不能使用IP地址并且必须使用服务器名称,并且收到以下错误:
TITLE: Connect to Server ------------------------------ Cannot connect to 10.0.2.xxx. ------------------------------ ADDITIONAL INFORMATION: SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not supported. Specify the actual server name, 'xxxxxxxxxx'. (Replication.Utilities) ------------------------------
在我的安全组设置中(我的SQL Server在一个组中),我打开了所有端口,但仍然没有在服务器A的可用networking服务器列表中看到服务器B.
我也启用远程连接启用。
我该如何解决这个问题?
– 更新 –
我已经尝试了几个在这里提供的build议,但仍然遇到同样的问题。
简而言之,在服务器A上,我在我的主机文件中创build了一个别名,指向服务器B.
在SQL Serverconfigurationpipe理器中,我创build了一个别名,指向我在hosts文件中创build的名称。 在服务器A上,在SSMS中,然后使用放置在SQL Serverconfigurationpipe理器中的别名连接到数据库服务器B – 所以我知道别名工作。
但是,当我尝试设置用户时input别名,我得到了与之前相同的错误。