<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
        主站蜘蛛池模板: 成年人视频在线观看免费| 一级做a免费视频观看网站| 日本成年免费网站| 最近免费中文字幕大全视频 | 永久免费A∨片在线观看| 特级精品毛片免费观看| 国产成人精品高清免费| 亚洲人成图片网站| 日本黄色免费观看| 亚洲综合久久久久久中文字幕| 亚洲欧美乱色情图片| 天天天欲色欲色WWW免费| 亚洲AV无码精品国产成人| 青柠影视在线观看免费| 久久精品国产精品亚洲色婷婷| 亚洲日韩看片无码电影| 国产成人高清精品免费鸭子 | 四虎在线成人免费网站| 亚洲国产成人在线视频| 成人午夜免费福利| 高潮毛片无遮挡高清免费视频| 亚洲人成无码www久久久| 亚洲一区二区三区丝袜| 最近2018中文字幕免费视频| 亚洲综合精品网站在线观看| 成人免费区一区二区三区| 亚洲成aⅴ人片在线影院八| 日本免费A级毛一片| 亚洲最大在线视频| 可以免费观看一级毛片黄a| 中中文字幕亚洲无线码| 99久久精品免费精品国产| 亚洲av极品无码专区在线观看| 国内精品久久久久影院免费| 亚洲无码日韩精品第一页| 在线观看免费无码专区| 2020年亚洲天天爽天天噜| 亚洲国产精品一区二区第一页免 | 成人毛片免费播放| 一边摸一边桶一边脱免费视频| 亚洲国产二区三区久久|