简体   繁体   English

事务复制不复制 SET QUOTED_IDENTIFIER

[英]Transactional Replication does not replicate SET QUOTED_IDENTIFIER

I have set up a one-to-one push trasactional replication with all articles copy properties set to TRUE .我已经设置了一对一推送事务复制,所有文章复制属性都设置为TRUE That's because I will need to back up the subscriber at some point with new data and restore as the primary database.那是因为我需要在某个时候用新数据备份订阅者并恢复为主数据库。

The setup is all fine except one schema issue: SET QUOTED_IDENTIFIER OFF is not transferred to subscriber when I compare the two databases on any of the articles (tables, views, etc).除了一个架构问题外,设置都很好:当我比较任何文章(表、视图等)上的两个数据库时, SET QUOTED_IDENTIFIER OFF不会转移到订阅者。 Is there a configuration that I am missing to have this corrected?是否有我缺少的配置来纠正这个问题?

在此处输入图片说明

This sounds like a documented bug with the Distribution agent replacing the square brackets around the name with quotes during replication.这听起来像是一个记录的错误,分发代理在复制期间用引号替换了名称周围的方括号。 As a result, the quoted identifier hint is dropped so it does not throw a syntax error near the name.结果,引用的标识符提示被删除,因此它不会在名称附近引发语法错误。 The documentation mostly refers to SProcs, but it may be worth investigating.文档主要是指 SProcs,但它可能值得研究。 Sources below:来源如下:

https://www.captechconsulting.com/blogs/sql-server-transactional-replication https://support.microsoft.com/en-us/kb/278324 https://www.captechconsulting.com/blogs/sql-server-transactional-replication https://support.microsoft.com/en-us/kb/278324

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 EXEC和设置Quoted_Identifier - EXEC and Set Quoted_Identifier SQL SERVER 和 SET ANSI_NULLS ON, SET QUOTED_IDENTIFIER ON - SQL SERVER and SET ANSI_NULLS ON, SET QUOTED_IDENTIFIER ON SQL Server 2008 SET QUOTED_IDENTIFIER OFF问题 - SQL Server 2008 SET QUOTED_IDENTIFIER OFF problem ANSI_NULLS和QUOTED_IDENTIFIER行为 - ANSI_NULLS and QUOTED_IDENTIFIER Behavior SQL 服务器 QUOTED_IDENTIFIER 更新时出错 - SQL Server QUOTED_IDENTIFIER Error On UPDATE SQL 查询通知 - 更新失败,因为以下 SET 选项的设置不正确:'QUOTED_IDENTIFIER' - SQL Query Notifications - UPDATE failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER' ANSI_NULLS 和 QUOTED_IDENTIFIER 杀死了一些东西。 它们是为了什么? - ANSI_NULLS and QUOTED_IDENTIFIER killed things. What are they for? 过滤的唯一索引导致更新由于错误的“ QUOTED_IDENTIFIER”设置而失败 - Filtered Unique Index causing UPDATE to fail because incorrect 'QUOTED_IDENTIFIER' settings 由于使用了XML / ANSI_NULLS,QUOTED_IDENTIFIER选项,SQL Server存储过程失败 - SQL Server Stored Procedure Fails due to use of XML/ ANSI_NULLS, QUOTED_IDENTIFIER options SQL Server代理发出的第一条语句将quoted_identifier设置为off - First statement issued by SQL Server Agent sets quoted_identifier off
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM