<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答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:

      1. Setup and configure CDC
      2. Use CDC to extract rows that have been inserted, updated, or deleted via T-SQL queries
      3. 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

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

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯(lián)系,我們將在第一時間刪除處理。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
        主站蜘蛛池模板: 亚洲国产午夜中文字幕精品黄网站| 久久久久久AV无码免费网站| 永久免费AV无码国产网站 | 女人裸身j部免费视频无遮挡| 性做久久久久久免费观看| 亚洲午夜在线播放| 毛片a级三毛片免费播放| 中文日韩亚洲欧美制服| 女人张开腿等男人桶免费视频| 亚洲综合色7777情网站777| 成人无遮挡裸免费视频在线观看| 91亚洲视频在线观看| 免费无码A片一区二三区| 在线a亚洲老鸭窝天堂av高清| 成年女性特黄午夜视频免费看| 亚洲一区二区三区乱码在线欧洲| 好男人看视频免费2019中文| 亚洲av无码专区亚洲av不卡| 亚洲国产精品尤物yw在线| 在线免费观看伊人三级电影| 亚洲最大福利视频网站| 永久免费av无码不卡在线观看 | 亚洲成人国产精品| 一级做α爱过程免费视频| 亚洲国产日韩在线视频| 人妻丰满熟妇无码区免费| 亚洲人成小说网站色| 国产aa免费视频| 九九美女网站免费| 亚洲乱码中文字幕小综合| 人人狠狠综合久久亚洲高清| 热久久这里是精品6免费观看| 亚洲日韩中文字幕| 免费在线黄色网址| 久久精品免费视频观看| 亚洲综合色一区二区三区| 久久久久亚洲av成人无码电影| 人妻无码久久一区二区三区免费| 亚洲AV无码一区二区一二区| 久久精品国产精品亚洲蜜月| 女人与禽交视频免费看|