国产99久久精品_欧美日本韩国一区二区_激情小说综合网_欧美一级二级视频_午夜av电影_日本久久精品视频

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當前位置: 首頁 - 科技 - 知識百科 - 正文

UsingChangeDataCapture(CDC)inSQLServer2008

來源:懂視網 責編:小采 時間:2020-11-09 10:08:35
文檔

UsingChangeDataCapture(CDC)inSQLServer2008

UsingChangeDataCapture(CDC)inSQLServer2008:Problem As we are looking through the new features in SQL Server 2008 we found a potentially interesting one called Change Data Capture. Can you give us a detailed explanation of how we go about using this one Solution Change Data Capture
推薦度:
導讀UsingChangeDataCapture(CDC)inSQLServer2008:Problem As we are looking through the new features in SQL Server 2008 we found a potentially interesting one called Change Data Capture. Can you give us a detailed explanation of how we go about using this one Solution Change Data Capture

Problem As we are looking through the new features in SQL Server 2008 we found a potentially interesting one called Change Data Capture. Can you give us a detailed explanation of how we go about using this one? Solution Change Data Capture

Problem
As we are looking through the new features in SQL Server 2008 we found a potentially interesting one called Change Data Capture. Can you give us a detailed explanation of how we go about using this one?

Solution
Change Data Capture is a new feature in SQL Server 2008 that records insert, update and delete activity in SQL Server tables. A good example of how this feature can be used is in performing periodic updates to a data warehouse. The requirement for the extract, transform, and load (ETL) process is to update the data warehouse with any data that has changed in the source systems since the last time the ETL process was run. Before CDC we might simply query a last updated DATETIME column in our source system tables to determine what rows have changed. While this is simple and pretty effective, it is of no use in determining any rows that were physically deleted. In addition we can't determine what was changed when; we can only access the current state of a row that has changed. CDC provides a configurable solution that addresses these requirements and more.

In this tip we are going to gain an understanding of CDC by walking through a simple code sample to demonstrate how to:

  • Setup and configure CDC
  • Use CDC to extract rows that have been inserted, updated, or deleted via T-SQL queries
  • Before we start reviewing the sample T-SQL code, let's discuss how CDC works at a high level. After performing some setup and configuration steps (which we will cover below), CDC will begin scanning the database transaction log for changes to certain tables that you specify, and will insert these changes into change tables. These change tables are created during the setup and configuration process. The setup and configuration process will also create table-valued functions which can be used to query for the changes. You use the table-valued functions in lieu of querying the underlying change tables directly. Based on this high level description, let's proceed to the demo.

    The demo code below was only tested on the February, 2008 Community Technology Preview (CTP) of SQL Server 2008. Some of the function names and stored procedure names have changed from the earlier CTPs.

    Setup and Configuration

    CDC is a feature that must be enabled at the database level; it is disabled by default. To enable CDC you must be a member of the sysadmin fixed server role. You can enable CDC on any user database; you cannot enable it on system databases. Execute the following T-SQL script in the database of your choice to enable CDC:

    declare @rc int exec @rc = sys.sp_cdc_enable_db select @rc -- new column added to sys.databases: is_cdc_enabled select name, is_cdc_enabled from sys.databases

    ,網站空間,香港服務器,美國服務器

    聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

    文檔

    UsingChangeDataCapture(CDC)inSQLServer2008

    UsingChangeDataCapture(CDC)inSQLServer2008:Problem As we are looking through the new features in SQL Server 2008 we found a potentially interesting one called Change Data Capture. Can you give us a detailed explanation of how we go about using this one Solution Change Data Capture
    推薦度:
    標簽: sqlserver2008 data serv
    • 熱門焦點

    最新推薦

    猜你喜歡

    熱門推薦

    專題
    Top
    主站蜘蛛池模板: 男女全黄一级带免费 | 永久在线毛片免费观看 | 热久久国产欧美一区二区精品 | 91精品国产色综合久久不卡蜜 | 国产在线播放网站 | 亚洲日韩在线视频 | 欧美日韩精品一区二区三区四区 | 91精品国产高清久久久久久91 | 中文字幕欧美在线观看 | 欧美在线国产 | 成人精品一级毛片 | 欧美日韩精品在线 | 自拍偷拍 欧美日韩 | 欧美在线视频一区二区三区 | 国产在线欧美日韩一区二区 | 国产一区二区高清视频 | 亚洲精品免费观看 | 亚洲国产欧美日韩精品一区二区三区 | 日韩欧美色图 | 国产一区二区免费 | 亚洲精品乱码久久久久久 | 亚洲欧美国产另类 | 亚洲精品视频在线观看免费 | 免费视频国产 | 亚洲欧美日韩国产综合高清 | 香蕉久久ac一区二区三区 | 欧美色亚洲 | 欧美日韩中文 | 亚洲 欧美 日韩 综合 | 伊人网伊人影院 | 日韩在线精品视频 | 国产精品特级毛片一区二区三区 | 久久午夜影院 | 日本特级淫片免费 | 热久久国产欧美一区二区精品 | 亚洲另类色图 | 欧美一区二区视频 | 精品麻豆 | 免费a级在线观看完整片 | 国产精品…在线观看 | 亚洲人成一区二区三区 |