ssis for the disinterested

70
SSIS for the Disinterested Brian Garraty @NULLgarity

Upload: beate

Post on 23-Feb-2016

34 views

Category:

Documents


0 download

DESCRIPTION

Brian Garraty @ NULLgarity. SSIS for the Disinterested. Who I am. Brian D. Garraty SQL Server DBA, Va Beach Public Schools HRSSUG Leadership Team Background in C++, VB, ASP, C# @ NULLgarity NULLgarity.wordpress.com >10 years experience with SSIS & DTS. Why I’ve Come to You Today. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: SSIS for the Disinterested

SSIS for the Disinterested

Brian Garraty@NULLgarity

Page 2: SSIS for the Disinterested

Who I am

Brian D. Garraty SQL Server DBA, Va Beach Public

Schools HRSSUG Leadership Team Background in C++, VB, ASP, C# @NULLgarity NULLgarity.wordpress.com >10 years experience with SSIS &

DTS

Page 3: SSIS for the Disinterested

Why I’ve Come to You Today SSIS is often

Misunderstood Disliked Considered difficult to learn Subject to ridicule

Page 4: SSIS for the Disinterested

Why I’ve Come to You Today SSIS is actually

Fairly simple (mostly) Pretty good at a lot of things Fun The right set of tools for the job

(sometimes)

Page 5: SSIS for the Disinterested

Success Requires

A desire to learn new things The time to learn new things Willingness to work through

frustrations Willingness to start over The right project

Page 6: SSIS for the Disinterested

Who I Come to You As TodayBrian D. Garraty, SSIS Defender

Brian D. Garraty, SSIS Apologist

Page 7: SSIS for the Disinterested

Who You Are

Type of Work You Do Experience with SSIS Rank your love of SSIS on Scale of 1

to 10 10 = God, Family, Country, SSIS 5 = Like it like a friend 1 = I want to fight it, really

Page 8: SSIS for the Disinterested

Where we are headed…

Starting from scratch – 100 Level Control Flow Data Flow Configurations Dynamic SSIS

What you can do with SSIS What I have done with SSIS

Page 9: SSIS for the Disinterested

Where we are headed…

Defense Will Rest If I knew then... Resources Questions

Page 10: SSIS for the Disinterested

Out of Scope

SSIS in SQL Server Denali How to do this Stuff Demos

Page 11: SSIS for the Disinterested

SSIS 101SQL Server Integration Services

Page 12: SSIS for the Disinterested

History

Bundled Extract, Transform, Load (ETL) Platform

Rewrite of Data Transformation Services (DTS)

Released with SQL Server 2005

Page 13: SSIS for the Disinterested

Dev Environment

Developed in Visual Studio (err…”Business Intelligence Development Studio”)

Solutions, Projects, Packages

Page 14: SSIS for the Disinterested

Run!!!!!!

Page 15: SSIS for the Disinterested

Solution Explorer

Page 16: SSIS for the Disinterested

Package Level Connections

Page 17: SSIS for the Disinterested

Variables

Page 18: SSIS for the Disinterested

Runtime Environment

Packages are Deployed as files or to msdb Executed via dtexec Utility (or wrapper

to it)

SSIS Service Runs on the server Doesn’t do much

Page 19: SSIS for the Disinterested

A New Paradigm

Control Flow Ordered workflow Isolated tasks Precedence Constraints Data flow tasks

Data Flow Move data from Point A to Point B Manipulate data along the way

Page 20: SSIS for the Disinterested

Control FlowWhere You Build Your Workflow

Page 21: SSIS for the Disinterested

Control Flow Picture

Page 22: SSIS for the Disinterested

Control Flow Toolbox

Page 23: SSIS for the Disinterested

Sequence Containers

Group related tasks Can be enabled/disabled Can serve as source for Precedence

Constraints, even when empty

Page 24: SSIS for the Disinterested

Loop Containers

Page 25: SSIS for the Disinterested

Precedence Constraints

Page 26: SSIS for the Disinterested

Execute SQL Tasks

Page 27: SSIS for the Disinterested

Script Task

Page 28: SSIS for the Disinterested

Other Control Flow Tasks

Execute Process Task Send Mail Task Execute Package Task

Data Flow Task…

Page 29: SSIS for the Disinterested

Control Flow Picture

Page 30: SSIS for the Disinterested

Data FlowWhere You Manipulate Data

Page 31: SSIS for the Disinterested

Data Flow Picture

Page 32: SSIS for the Disinterested

Data Flow Sources

Page 33: SSIS for the Disinterested

Data Flow Transformations

Page 34: SSIS for the Disinterested

Data Destinations

Page 35: SSIS for the Disinterested

Data Flow Picture - Big

Page 36: SSIS for the Disinterested

Dynamic SSISWhat You See Isn’t Always What You Get

Page 37: SSIS for the Disinterested

What can be dynamic?

Object property values Variable values

Page 38: SSIS for the Disinterested

Expressions

Determined Dynamic Values Expressions evaluate at runtime Example: Use current date to build

unique log file name

Page 39: SSIS for the Disinterested

Configurations

Instructed Dynamic Values XML file Example: Connection Strings

Page 40: SSIS for the Disinterested

Dynamic SSIS

What you see may not be what you get…

But it is what you asked for!

Page 41: SSIS for the Disinterested

What You Can Dowith SQL Server Integration Services

Page 42: SSIS for the Disinterested

Disparate Data Sources

Join data from Oracle with data from SQL Server? No problem. No linked server. No OPENROWSET No xp_cmdshell No bcp

Page 43: SSIS for the Disinterested

Discover Workloads

Have two SQL Servers with 1500 databases, give or take, and need to pull data from all? No problem. No linked server. No OPENROWSET No xp_cmdshell No bcp

Page 44: SSIS for the Disinterested

Parallelize Workloads

Multiple lines == Multiple threads Often equals, at least

Page 45: SSIS for the Disinterested

Offload Workloads

Pull data off OLTP systems Crunch it to your heart’s content Location agnostic

OLTP = Online Transactional Processing

Page 46: SSIS for the Disinterested

Exploit Your Talents

Seemless integration with your comfort zone .NET Stored Procedures XML

Page 47: SSIS for the Disinterested

The Random

Can you have it email me? Can you only email when X and Y but

not Z? This program needs to run when the

extract finishes but only if…

Page 48: SSIS for the Disinterested

What I’ve Donewith SQL Server Integration Services

Page 49: SSIS for the Disinterested

Hosted Data Warehouse Pull Extract data from numerous sources Stage to database Apply transforms and business logic Write final data to files Zip files and ftp to host Track each run

Page 50: SSIS for the Disinterested

(Oh no!) System Integration

How will the data get from these 100 databases on these two servers to this one?

Can you not send any dups? Can you email us the dups? Can you track the dups that have

been fixed?

Page 51: SSIS for the Disinterested

Active Directory Extract

Extract users, groups, & membership Load data into SQL Server Ensure it always works

Page 52: SSIS for the Disinterested

The Defense RestsThe Dark Side of SSIS

Page 53: SSIS for the Disinterested

GUI-Intensive

If you aren’t comfortable in a GUI-intensive IDE, SSIS will be a challenge

Page 54: SSIS for the Disinterested

!WYSIWYG

But you do get what you asked for! WYSIWYAF

Page 55: SSIS for the Disinterested

Expression Syntax

Inconsistent Difficult to Master Flying solo (No Intellisense)

Page 56: SSIS for the Disinterested

Wound Tight

SSIS binds itself to your meta data and holds on tight

SSIS continually checks that things have not changed

Single column change in data source must trickle all the way down your data source

Page 57: SSIS for the Disinterested

What’s the Difference?

Source Control? In my experience you can check things in, label them, and do “gets”.

Trying to do a Diff might induce panic

If needed, seek a third party

Page 58: SSIS for the Disinterested

Tradeoff

The more dynamic you get, the less parallel you tend to get

Page 59: SSIS for the Disinterested

Read only? If only!

Just viewing details of SSIS components often leads SSIS to want to make changes to the file

Code review often leads to check out the entire project

Page 60: SSIS for the Disinterested

But It Works on My Machine! The server is not your machine Early on, budget some time to work

through issues upon deployment Drivers, rights, O/S, platform, etc.

may cause problems Be patient!

Page 61: SSIS for the Disinterested

Misc Rants

No Undo (yet) Variable Scope is read-only Variable Scope is context-default

Audience?

Page 62: SSIS for the Disinterested

If I Knew Then…Best Practices and Words of Caution

Page 63: SSIS for the Disinterested

Multiple Package Projects Benefits:

Encapsulation Readability Collaboration

Page 64: SSIS for the Disinterested

Deploy as Files

Packages in development must be files

You will have multiple file projects To minimize changes on deployment,

deploy as files More info: bit.ly/lSniJS

Page 65: SSIS for the Disinterested

Root Folder Variable

String variable to store location of package

Use to build relative file paths Input files (xsd, raw, etc) Output files (xml, raw, etc) Connection strings (packages, log files,

etc) More info: bit.ly/iuLctD

Page 66: SSIS for the Disinterested

Indirect Configurations

Store location of configuration file in environment variable

More info: bit.ly/ksAQOG

Page 67: SSIS for the Disinterested

Recreate over Edit

In response to certain changes, delete

Take advantage of ease of creating a new item rather than suffer through unpleasant editing experience

Particularly true for file connections

Page 68: SSIS for the Disinterested

Resources

The New ETL Paradigm, Jamie Thomson bit.ly/e17DUR

Jamie Thomson’s Blogs sqlblog.com/blogs/jamie_thomson consultingblogs.emc.com/jamiethomson

Page 69: SSIS for the Disinterested

Resources (con’t)

SSIS Community Tasks and Components ssisctc.codeplex.com

Locally grown SSIS Training andyleonard.net

Page 70: SSIS for the Disinterested

Questions?