简体   繁体   English

有没有办法同时使用 SQL Server 2019 和 CDC(变更数据捕获)?

[英]Is there a way to use SQL Server 2019 and CDC (Change Data Capture) at the same time?

I am working on a project where I have to use CDC, catalog collation SQL_Latin1_General_CP1_CI_AS and a CS collation for data.我正在开发一个项目,在该项目中我必须使用 CDC、目录整理 SQL_Latin1_General_CP1_CI_AS 和数据的 CS 整理。 I get an collation conflict error from sp_cdc_create_populate_stored_procs when enabling cdc for any table.为任何表启用 cdc 时,我从 sp_cdc_create_populate_stored_procs 收到整理冲突错误。 This is called from other procedure "sys.sp_cdc_enable_table_internal" and again this is call from my own sql-script "sys.sp_cdc_enable_table".这是从其他过程“sys.sp_cdc_enable_table_internal”调用的,这也是从我自己的sql脚本“sys.sp_cdc_enable_table”调用的。 To me this seems like a bug but would appreciate if there's any new ideas how to implement production level workaround on this matter.对我来说,这似乎是一个错误,但如果有任何新想法如何在此问题上实施生产级解决方法,我将不胜感激。

This is a documented limitation of Contained Databases.这是包含数据库的记录限制。

Limitations限制

Partially contained databases do not allow the following features.部分包含的数据库不允许以下功能。

-Partially contained databases cannot use replication, change data capture, or change tracking. - 部分包含的数据库不能使用复制、更改数据捕获或更改跟踪。

-Numbered procedures - 编号程序

-Schema-bound objects that depend on built-in functions with collation changes - 依赖于具有排序规则更改的内置函数的模式绑定对象

-Binding change resulting from collation changes, including references to objects, columns, symbols, or types. - 归类更改导致的绑定更改,包括对对象、列、符号或类型的引用。

-Replication, change data capture, and change tracking. - 复制、变更数据捕获和变更跟踪。

Contained Databases - Limitations 包含的数据库 - 限制

If you need a case-insensitive catalog collation along with a case-sensitive collation for data, you can set the column collation directly on your text columns instead of using the database's default collation.如果您需要不区分大小写的目录归类以及区分大小写的数据归类,则可以直接在文本列上设置列归类,而不是使用数据库的默认归类。

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

相关问题 需要帮助以在 SQL 服务器上启用变更数据捕获 (CDC) - Need help to enable Change Data Capture (CDC) on SQL Server Debezium更改数据捕获(CDC)在SQL Server 2017上不起作用 - Debezium Change Data Capture (CDC) not working on sql-server 2017 SQL Server CDC(更改数据捕获)仅用于表数据更改吗? 我可以使用它来跟踪过程或其他类型的对象更改吗? - SQL Server CDC(change data capture) is used just for table data change? Can I use it to track procedure or other types of objects change? SQL依赖与变更数据捕获(CDC) - SQL Dependency vs Change Data Capture (CDC) 在哪些Sql Server产品级别上可以使用更改数据捕获(CDC)功能? - on what Sql Server product levels the Change Data Capture (CDC) feature is available? SQL Server 同时对一个表进行更改跟踪和更改数据捕获 - SQL Server's Change Tracking and Change Data Capture for a table at the same time 更改数据捕获 (CDC) SSIS 不起作用 - Change data capture (CDC) SSIS not working 如何存储更改数据(CDC)SQL Server 2012 - How to store change data (CDC) SQL Server 2012 更改数据捕获 - SQL SERVER? - Change Data Capture - SQL SERVER? 更改数据捕获(CDC)清理作业一次仅删除一些记录 - Change Data Capture (CDC) cleanup job only removes a few records at a time
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM