[英]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.