{"id":12321,"date":"2019-05-19T20:46:51","date_gmt":"2019-05-19T20:46:51","guid":{"rendered":"https:\/\/dbtut.com\/?p=12321"},"modified":"2019-05-19T20:46:53","modified_gmt":"2019-05-19T20:46:53","slug":"change-data-capturecdc-in-sql-server","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/","title":{"rendered":"Change Data Capture(CDC) in SQL Server"},"content":{"rendered":"<p>Change Data Capture (CDC) is a technology that can be used in incremental data transfers from OLTP systems to data warehouse systems. By storing the insert, update, and delete operations, it stores the first and last version of the record in a change table. This table where the changes are stored is called a change table.<\/p>\n<p>It then reflects these changes to the destination that you want to transfer. We can do similar operations using trigger, but since CDC takes the changes from the log file, it both works more efficiently and makes our processes considerably easier.<\/p>\n<p>Let&#8217;s continue with an example as we always do.<\/p>\n<h2>Check CDC Enabled Databases<\/h2>\n<p>First of all, with the help of the following script, let&#8217;s check if there is a database on the instance where CDC is enabled.<\/p>\n<pre class=\"lang:default decode:true \">USE master \nGO \nSELECT [name],is_cdc_enabled FROM sys.databases  \n<\/pre>\n<h2>Enable CDC<\/h2>\n<p>Then, enable the CDC for the database we want to use the CDC with the help of the following script.<\/p>\n<pre class=\"lang:default decode:true \">USE [AdventureWorks2014] \nGO \nEXEC sys.sp_cdc_enable_db \nGO\n<\/pre>\n<p>After running the above script, a schema named cdc and some tables will be created in this schema. The list of these tables is as follows. You can see these tables under the system tables in the database in which the CDC is enabled.<\/p>\n<div>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>cdc.captured_columns<\/td>\n<td>This table stores the list of captured columns<\/td>\n<\/tr>\n<tr>\n<td>cdc.change_tables<\/td>\n<td>This table stores the list of captured tables<\/td>\n<\/tr>\n<tr>\n<td>cdc.ddl_history<\/td>\n<td>This table stores the history of all DDL operations after the CDC is enabled<\/td>\n<\/tr>\n<tr>\n<td>cdc.index_columns<\/td>\n<td>This table stores the changes of the indexes of the columns captred with CDC.<\/td>\n<\/tr>\n<tr>\n<td>cdc.lsn_time_mapping<\/td>\n<td>This table stores the change and time of transactions<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>List CDC Enabled Tables<\/h2>\n<p>CDC can be enabled based on the table in the database. You can use the following script to list the tables where the CDC was enabled.<\/p>\n<\/div>\n<pre class=\"lang:default decode:true \">USE [AdventureWorks2014] \nGO \nSELECT [name]\nFROM sys.tables\nwhere is_tracked_by_cdc=1\n<\/pre>\n<h2>Enable CDC on a Table<\/h2>\n<p>You can enable CDC on a table with the help of the following script<\/p>\n<pre class=\"lang:default decode:true \">USE [AdventureWorks2014] \nGO \nEXEC sys.sp_cdc_enable_table \n@source_schema = N'dbo', \n@source_name   = N'Address', \n@role_name     = NULL\n<\/pre>\n<p>If the SQL Server Agent service is not started, you will receive a message as follows. To avoid this error, you must start the SQL Server Agent service. The reason you receive the error is that the CDC creates two jobs and the SQL Server Agent Service is not started, so these jobs cannot be executed. After starting the service, you don&#8217;t need to run the script above again.<\/p>\n<p><span style=\"color: #ff0000;\"><em>SQLServerAgent is not currently running so it cannot be notified of this action.<\/em><\/span><\/p>\n<p>After running the script, you will see that the CDC creates a new table named &#8220;cdc.dbo_Address_CT&#8221; under the system tables. In this table, you will see that there are some extra columns except the columns of the &#8220;dbo.Address&#8221; table.<\/p>\n<p id=\"bRcUqtV\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/img_5ce0add47e58f.png\" alt=\"\"><\/p>\n<p>&nbsp;<\/p>\n<h2>Check if the CDC is working correctly<\/h2>\n<p>Perform an update as follows to check if the CDC is working correctly.<\/p>\n<pre class=\"lang:default decode:true\">USE [AdventureWorks2014]\nGO\nUPDATE [dbo].[Address]\n   SET  [City] = 'Ankara'\nWHERE City='Seattle' AND AddressID=23\n<\/pre>\n<p>Check whether the change is reflected to the &#8220;change table&#8221;.<\/p>\n<pre class=\"lang:default decode:true \">USE [AdventureWorks2014]\nGO\nSELECT *  FROM [cdc].[dbo_Address_CT]\nGO\n<\/pre>\n<p>The values you will see in the _$operation column are as follows.<\/p>\n<div>\n<table style=\"width: 191px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"width: 47.6px;\">1<\/td>\n<td style=\"width: 137.2px;\">Delete Process<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 47.6px;\">2<\/td>\n<td style=\"width: 137.2px;\">Insert Process<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 47.6px;\">3<\/td>\n<td style=\"width: 137.2px;\">Before Update<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 47.6px;\">4<\/td>\n<td style=\"width: 137.2px;\">After Update<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>When you enable CDC with the script I shared above on the table, it monitors and logs the changes made to all columns in the table. If you want to do this for specific columns in the table, you need to add the columns you want with the @captured_column_list parameter to the end of the script.<\/p>\n<pre class=\"lang:default decode:true \">USE [AdventureWorks2014] \nGO \nEXEC sys.sp_cdc_enable_table \n@source_schema = N'dbo', \n@source_name   = N'Address', \n@role_name     = NULL,\n@captured_column_list&nbsp;=&nbsp;'[City],[PostalCode]' \n<\/pre>\n<p>A function called &#8220;fn_cdc_get_all_changes_dbo_Address&#8221; has been created under the database when the CDC is enabled. You can also get specific results by querying this function. Example use;<\/p>\n<pre class=\"lang:default decode:true\">USE AdventureWorks2014\nGO \nDECLARE @start_time DATETIME, @finish_time DATETIME, @first_lsn BINARY(10), @last_lsn BINARY(10); \n--We set the start time to yesterday to list changes in the last 1 day.\nSELECT @start_time = GETDATE()-1, @finish_time = GETDATE(); \n--You can type smallest greater than or equal instead of smallest greater than.\nSELECT @first_lsn = sys.fn_cdc_map_time_to_lsn('smallest greater than', @start_time);\n--You can type largest less than instead of largest less than or equal.\nSELECT @last_lsn = sys.fn_cdc_map_time_to_lsn('largest less than or equal', @finish_time); \nSELECT * \nFROM cdc.fn_cdc_get_all_changes_dbo_Address(@first_lsn,@last_lsn,'all') \n<\/pre>\n<h2>Disable CDC<\/h2>\n<p>Finally, you can disable CDC as follows.<\/p>\n<pre class=\"lang:default decode:true \">USE [AdventureWorks2014];\nGO\nEXECUTE sys.sp_cdc_disable_table \n    @source_schema = N'dbo', \n    @source_name = N'Address',\n    @capture_instance = N'dbo_Address';\nGO\n--If you don't want to disable it on a database basis, don't run the following script.\nEXEC sys.sp_cdc_disable_db \nGO<\/pre>\n<p>You can access Capture Instance by running the following stored procedure.<\/p>\n<p>sys.sp_cdc_help_change_data_capture<\/p>\n<p>After enabling the CDC, you can feed dataware house applications with SSIS packages. Below you will find examples.<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/integration-services\/change-data-capture\/change-data-capture-ssis\">https:\/\/docs.microsoft.com\/en-us\/sql\/integration-services\/change-data-capture\/change-data-capture-ssis<\/a><\/p>\n\n<\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_12321\" class=\"pvc_stats all  \" data-element-id=\"12321\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Change Data Capture (CDC) is a technology that can be used in incremental data transfers from OLTP systems to data warehouse systems. By storing the insert, update, and delete operations, it stores the first and last version of the record in a change table. This table where the changes are stored is called a change &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_12321\" class=\"pvc_stats all  \" data-element-id=\"12321\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":12330,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[4437,4422,44,4431,4439,4420,4419,4430,2676,4440,4442,4441,4429,4423,4438,4436,4433,4428,4435,4424,4432,4434,4426,4425,4427,4421],"class_list":["post-12321","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-mssql","tag-cdc-add-table","tag-cdc-in-sql-server","tag-change-data-capture","tag-change-data-capture-in-etl","tag-change-data-capture-sql-server-2016-standard-edition","tag-check-cdc-enabled-database","tag-check-cdc-enabled-databases","tag-check-if-change-tracking-is-enabled-on-a-table","tag-disable-cdc","tag-disable-cdc-in-the-database","tag-disable-cdc-on-db","tag-disable-cdc-on-table","tag-enable-and-disable-change-data-capture","tag-enable-cdc","tag-enable-cdc-on-multiple-tables","tag-enable-cdc-on-table","tag-how-does-change-data-capture-work","tag-how-to-check-whether-cdc-is-enabled","tag-is-cdc-enabled-in-sql-server","tag-is-cdc-enabled","tag-list-cdc-enabled-tables","tag-what-is-cdc-data-warehouse","tag-what-is-cdc-in-etl","tag-what-is-cdc-in-sql-server","tag-what-is-cdc-ssis","tag-what-is-change-data-capture"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Change Data Capture(CDC) in SQL Server - Database Tutorials<\/title>\n<meta name=\"description\" content=\"Change Data Capture(CDC) in SQL Server\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change Data Capture(CDC) in SQL Server - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"Change Data Capture(CDC) in SQL Server\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-19T20:46:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-19T20:46:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png\" \/>\n\t<meta property=\"og:image:width\" content=\"646\" \/>\n\t<meta property=\"og:image:height\" content=\"349\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"dbtut\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dbtut\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/\"},\"author\":{\"name\":\"dbtut\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\"},\"headline\":\"Change Data Capture(CDC) in SQL Server\",\"datePublished\":\"2019-05-19T20:46:51+00:00\",\"dateModified\":\"2019-05-19T20:46:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/\"},\"wordCount\":649,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png\",\"keywords\":[\"cdc add table\",\"CDC in SQL Server\",\"Change Data Capture\",\"change data capture in etl\",\"change data capture sql server 2016 standard edition\",\"Check CDC Enabled Database\",\"Check CDC Enabled Databases\",\"check if change tracking is enabled on a table\",\"Disable CDC\",\"disable CDC in the database\",\"disable cdc on db\",\"disable cdc on table\",\"Enable and Disable Change Data Capture\",\"Enable CDC\",\"enable cdc on multiple tables\",\"enable cdc on table\",\"How does change data capture work?\",\"How to check whether CDC is enabled\",\"Is CDC enabled in SQL Server?\",\"Is CDC enabled?\",\"List CDC Enabled Tables\",\"What is CDC data warehouse?\",\"What is CDC in ETL?\",\"What is CDC in SQL Server?\",\"What is CDC SSIS?\",\"What is Change Data Capture\"],\"articleSection\":[\"MSSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/\",\"name\":\"Change Data Capture(CDC) in SQL Server - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png\",\"datePublished\":\"2019-05-19T20:46:51+00:00\",\"dateModified\":\"2019-05-19T20:46:53+00:00\",\"description\":\"Change Data Capture(CDC) in SQL Server\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png\",\"width\":646,\"height\":349},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Change Data Capture(CDC) in SQL Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\",\"name\":\"dbtut\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"caption\":\"dbtut\"},\"description\":\"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.\",\"sameAs\":[\"http:\/\/NurullahCAKIR\"],\"url\":\"https:\/\/dbtut.com\/index.php\/author\/dbtut\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change Data Capture(CDC) in SQL Server - Database Tutorials","description":"Change Data Capture(CDC) in SQL Server","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/","og_locale":"en_US","og_type":"article","og_title":"Change Data Capture(CDC) in SQL Server - Database Tutorials","og_description":"Change Data Capture(CDC) in SQL Server","og_url":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/","og_site_name":"Database Tutorials","article_published_time":"2019-05-19T20:46:51+00:00","article_modified_time":"2019-05-19T20:46:53+00:00","og_image":[{"width":646,"height":349,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png","type":"image\/png"}],"author":"dbtut","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dbtut","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/"},"author":{"name":"dbtut","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408"},"headline":"Change Data Capture(CDC) in SQL Server","datePublished":"2019-05-19T20:46:51+00:00","dateModified":"2019-05-19T20:46:53+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/"},"wordCount":649,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png","keywords":["cdc add table","CDC in SQL Server","Change Data Capture","change data capture in etl","change data capture sql server 2016 standard edition","Check CDC Enabled Database","Check CDC Enabled Databases","check if change tracking is enabled on a table","Disable CDC","disable CDC in the database","disable cdc on db","disable cdc on table","Enable and Disable Change Data Capture","Enable CDC","enable cdc on multiple tables","enable cdc on table","How does change data capture work?","How to check whether CDC is enabled","Is CDC enabled in SQL Server?","Is CDC enabled?","List CDC Enabled Tables","What is CDC data warehouse?","What is CDC in ETL?","What is CDC in SQL Server?","What is CDC SSIS?","What is Change Data Capture"],"articleSection":["MSSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/","url":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/","name":"Change Data Capture(CDC) in SQL Server - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png","datePublished":"2019-05-19T20:46:51+00:00","dateModified":"2019-05-19T20:46:53+00:00","description":"Change Data Capture(CDC) in SQL Server","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2019\/05\/Ads\u0131z-57.png","width":646,"height":349},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2019\/05\/19\/change-data-capturecdc-in-sql-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"Change Data Capture(CDC) in SQL Server"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408","name":"dbtut","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","caption":"dbtut"},"description":"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.","sameAs":["http:\/\/NurullahCAKIR"],"url":"https:\/\/dbtut.com\/index.php\/author\/dbtut\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/12321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=12321"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/12321\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/12330"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=12321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=12321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=12321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}