无法使用SSMS 2014中的侦听器名称配置事务复制 [英] Unable to configure transactional replication using Listener name from SSMS 2014

查看:131
本文介绍了无法使用SSMS 2014中的侦听器名称配置事务复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们正在运行SQL Server 2014 Ent和2017 Ent。 



在2014年使用Publisher DB和2017年的Subscriber DB(2014年也是远程分销商)设置事务复制时,发现此配置只能从升级后的SSMS(即SSMS 2017)创建。



但是,现在出现了一个新的观察结果,即我们的查询 - 在2014年两个数据库之间设置复制时,发布者数据库需要从SSMS 2017连接到listerner名称才能工作。



否则,它是通过使用实例名称创建的,但这在AG环境中是不可取的,因为一旦发生故障转移它将停止工作。



虽然我们能够开展工作,但这个案例显然让我们好奇它为什么会这样做?有人可以突出显示吗?



错误消息:



SQL Server无法连接到服务器'TestLSN '。$


附加信息:

SQL Server复制需要实际的服务器名称才能建立与服务器的连接。不支持通过服务器别名,IP地址或任何其他备用名称进行连接。指定实际的服务器名称'myinstance\myinstance'。 (Replication.Utilities)



注意:



以下内容已经过检查:



1)监听器名称添加在Alias下的SQL配置管理器中。
2)机器名称&监听器名称在主机文件中更新(C:\ WINDOW \ System32 \Drivers \ etc)

3)过去未重命名机器名称或SQL服务器实例名称。



问候,Rahul

Hi,

We are running SQL Server 2014 Ent and 2017 Ent. 

While setting up transactional replication with Publisher DB in 2014 and Subscriber DB in 2017 (Remote Distributor also in 2014), it was found that this configuration can get created only from the upgraded SSMS, i.e. SSMS 2017.

But, now there has been a new observation wherein lies our query - while setting up replication between two DBs both in 2014, the Publisher DB needs to be connected from SSMS 2017 for the listerner name to work.

It otherwise gets created by using the instance name but, which is not advisable in an AG environment as it will stop working once a failover occurs.

While we are able to carry out work, this case obviously made us curious as to why it behaves this way? Can someone please highlight?

Error Message:

SQL Server is unable to connect to server 'TestLSN'.

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 alternative name are not supported. Specify the actual server name, 'myinstance\myinstance'. (Replication.Utilities)

Note:

Below things are already checked:

1) Listener name is added in the SQL configuration Manger under Alias
2) Machine name & Listener name is updated in the Host file(C:\Windows\System32\Drivers\etc)
3) Machine name or SQL server instance name has not been renamed in the past.


Regards, Rahul

推荐答案

我在
文档。这可能是您在使用SSMS进行配置时看到该消息的原因。该限制可能已在最新的SSMS版本中取消。 

I see the following note in the documentation. It could be why you're seeing that message when configuring using SSMS. The restriction may have been lifted in the latest SSMS version. 

"必须使用Transact-SQL脚本创建订阅无法使用Management Studio创建。"


这篇关于无法使用SSMS 2014中的侦听器名称配置事务复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆