sql server etl framework

15
SQL Server ETL-framework Genereren en uitvoeren van packages Jeroen Nijs Healthcare Intelligence

Upload: nijs

Post on 20-Jul-2015

93 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Sql server etl framework

SQL Server ETL-framework

Genereren en uitvoeren van packages

Jeroen Nijs

Healthcare Intelligence

Page 2: Sql server etl framework

2

Randvoorwaarden

• Packages met vast patroon genereren

• Meta data

• Project Deployment Model

• Middels SQL Server Agent job packages uitvoeren

• Aansturing

• Logging

• Herstartbaarheid

• Eenvoudig

• Begrijpelijk

Page 3: Sql server etl framework

3

Domeinen

Control

Logging

Packages/SP’s

Page 4: Sql server etl framework

SSIS-packages

Typen:

• Van Bron naar Staging area

• Van Staging area naar Historische datalaag

• Van Historische datalaag naar Dimensietabel

• Van Historische datalaag en Dimensietabel naar Feittabel

• Van Stermodel naar dedicated Stermodel

4

Page 5: Sql server etl framework

SSIS-packages

Meta data

• Brontabel

• Staging tabel• CreateStagingTable.sql

• MD5• MD5Hash_Formula.sql

• Historische datalaag tabel• CreateHistoricTable.sql

5

Page 6: Sql server etl framework

SSIS-packages

Van Bron naar Staging

• SSIS-package met DELTA-load• SRC2STG_MEDICAT_RECDEEL

• SSIS-package zonder DELTA-load• SRC2STG_MEDICAT_MEDICIJN

• BIML Script• SRC2STG.biml

6

Page 7: Sql server etl framework

SSIS-packages

MetaData

• SQL Server• Database: Control

• Schema: Meta

7

Page 8: Sql server etl framework

SSIS-packages

Van Staging naar Historische Datalaag

• SSIS-package• STG2HIS_MEDICAT_RECDEEL

• BIML Script• STG2HIS.biml

8

Page 9: Sql server etl framework

Logging

• Wat

• Wanneer

• Resultaat

• Condities

• Niveaus:• Job

• Step

• Details

• SQL Server• Database: Control

• Schema: Log

9

Status DescriptionE ErrorI InfoN NumbersP ParameterR RunningS SuccessfulT TableW Warning

Page 10: Sql server etl framework

Control

• Wat

• Volgorde

• Condities

• Niveaus:• Application

• Package

• Parameters

• SQL Server• Database: Control

• Schema: Control

10

LoadStrategyDELTADELTA_KEYSFULLKEYS

Page 11: Sql server etl framework

Control

Storage Procedures and Functions:

• Control-schema

• Add, Set, Delete en Get

• ControlMaintenance.sql

• LastStartDateOfSuccessfulTableLoad

• UpdateParameterTypeSelectDateFrom2

Disable/Enable:

• Application

• ApplicationPackage

• PackageParameter

11

Page 12: Sql server etl framework

Control

Storage Procedures: Execute

• Control.GetEnabledApplicationPackages

• Control.ExecuteCatalogPackage

SQL Server Agent:

• Job

• Steps

• Parameters

12

Page 13: Sql server etl framework

Master Package

13

Page 14: Sql server etl framework

14

Domeinen

Control

Logging

Packages/SP’s

Page 15: Sql server etl framework

SQL Server ETL-framework

15