SlideServe
Menu
Préférences
© SlideServe · v2026

CDC+SSIS = SCD

hachi avatar
18 diapositives · 523 Views · Jul 28, 2014

CDC+SSIS = SCD. Patrick LeBlanc, SQL Server MVP. #49 Orlando. Contact Information. Email: pleblanc@pragmaticworks.com Twitter: patrickdba Blog: http://bidn.com/blogs/patrickleblanc. Overview. A Few Warehouse Terms Detecting Change Data (OLD SCHOOL) Change Data Capture

CDC+SSIS = SCD - slide 1
01 / 18CDC+SSIS = SCD
1 / 17

Télécharger la présentation

CDC+SSIS = SCD
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. CDC+SSIS = SCD Patrick LeBlanc, SQL Server MVP #49 Orlando

  2. Contact Information • Email: pleblanc@pragmaticworks.com • Twitter: patrickdba • Blog: http://bidn.com/blogs/patrickleblanc

  3. Overview • A Few Warehouse Terms • Detecting Change Data (OLD SCHOOL) • Change Data Capture • SQL Server Integration Service • Slowly Changing Dimension

  4. Warehouse Terms • Data Warehouse • Centralized repository of data. • Organized for analytics and reporting • Dimension • Mechanism for slicing or categorizing data. • Enables filtering and grouping of DW data. • Slowly Changing Dimension (SCD) • Type 0 (Fixed Attribute) • Type I (Changing Attribute) • Type II (Historical Attribute)

  5. Type 1 (Changing Attribute) Update Simple UPDATE statement applied: UPDATE DimCustomer Set AddressLine1 = ‘123 Main St’, ZipCode = ‘54276’ WHERE CustomerID = 5000017302

  6. Type 2 (Changing Attribute) Update

  7. Type 0 (Fixed Attribute) Update Update Ignored or Failure

  8. Detecting Change Data

  9. Old School Change Detection DEMO TIME Create tables with RowVersion column Create table to track RowVersion Build SSIS Package

  10. Slowly Changing Dimension Task

  11. Change Data Capture Solution

  12. Key CDC Components • Change Tracking Tables • Based on schema of tracked table • Copy of “before” and “after” data for each record changed • Log Reader Job • Near real-time capture of transactions • Same internal code as Transactional Replication • Transactions tracked by LSN • Clean Up Job • Purges tracking tables of data older then 72 hours (3 days) • CDC Created Functions • sys.sp_cdc_help_change_data_capture • cdc.fn_cdc_get_all_changes_Sales_SalesOrderDetai • cdc.fn_cdc_get_net_changes

  13. New School Change Detection DEMO TIME • Enable Database for CDC • Enable Tables for CDC • Update User Tables • CDC Records LSN and matching Data • Query Changes in _CT Tables based on LSNs

  14. Use CDC + SSIS • Extract • Transform • Load • To Data Warehouse DEMO TIME

  15. Biography • BI Architect for Pragmatic Works • SQL Server MVP • Decade of SQL Server Experience • Founder SQL Lunch (www.sqllunch.com) • Leader Baton Rouge, LA SQL Server User Group • Twitter:@patrickdba • Blog: http://www.bidn.com/blogs/PatrickLeBlanc • Author: Knight’s Microsoft Business Intelligence 24-Hour Trainer

  16. ? Questions

  17. Contact Information • Email: pleblanc@pragmaticworks.com • Twitter: patrickdba • Blog: http://bidn.com/blogs/patrickleblanc

  18. @ SQL Saturday #49 Orlando CDC+SSIS = CDC Patrick Leblanc (blog|twitter)