SSIS Templates, Configurations & Variables

Slides:



Advertisements
Similar presentations
Creating a Meta Data Driven SSIS Solution with Biml
Advertisements

Stored procedures and views You can see definitions for stored procedures and views in the demo databases but you can’t change them. For views, expand.
Introduction to ETL Using Microsoft Tools By Dr. Gabriel.
Presentation Heading – font Arial
INTEGRATION SERVICES IN THE REAL WORLD Brian Garraty, Database Administrator Virginia Beach City Public Schools.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Error Handling in SSIS Reza Rad SQL Server MVP, Author, DW / BI Architect.
SQL Server 2005 Integration Services Mike Taulty Developer & Platform Group Microsoft Ltd
TIBCO Designer TIBCO BusinessWorks is a scalable, extensible, and easy to use integration platform that allows you to develop, deploy, and run integration.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
SSIS Over DTS Sagayaraj Putti (139460). 5 September What is DTS?  Data Transformation Services (DTS)  DTS is a set of objects and utilities that.
SQL Server Integration Services (SSIS) Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server (MVP) Microsoft Certified Technology Specialist.
What’s New in SSIS with SQL 2008 Bret Stateham Training Manager Vortex Learning Solutions blogs.netconnex.com.
Databases and LINQ Visual Basic 2010 How to Program 1.
 Nate Locklin ◦ Database Analyst, PPG Industries ◦  Steve Tirone ◦ Data Warehouse Analyst, Amerinet ◦
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
DTS Conversion to SSIS Conversion Best Practices Mike Davis
SQL Server User Group Meeting Reporting Services Tips & Tricks Presented by Jason Buck of Custom Business Solutions.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Database Unit Test MSSQL 2008 & VS 2010 Aung Kyaw Myo.
DAT 360: DTS in SQL Server 2000 Best Practices Euan Garden Group Manager, SQL Server Microsoft Corporation.
ADAPTING YOUR ETL SOLUTION TO USE SSIS 2012 Presentation by Devin Knight
Brian  Brian D. Garraty  SQL Server DBA, Va Beach Public Schools  HRSSUG Leadership Team  Background in C++, VB, ASP, C#
Database Projects in Visual Studio Improving Reliability & Productivity.
Building Data Integration Solutions with Integration Services Donald Farmer Group Program Manager Microsoft Corporation.
02 | Data Flow – Extract Data Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons Great.
Agenda for Class 2/20/2014 Introduce Microsoft’s SQL Server database management system. Use the lab to discuss how to CREATE, DROP and populate (INSERT)
Rack Wizard LECC 2003 Frank Glege. LECC Frank Glege - CERN2/12 Content CMS databases - overview The equipment database The Rack Wizard.
Creating Simple and Parallel Data Loads With DTS.
Continuous Deployments using SSDT
Integrating and Extending Workflow 8 AA301 Carl Sykes Ed Heaney.
Scripting Just Enough SSIS to be Dangerous. 6/13/2015 Visit the Sponsor tables to enter their end of day raffles. Turn in your completed Event Evaluation.
Bret Stateham Owner, Net Connex blogs.netconnex.com
Pulling Data into the Model. Agenda Overview BI Development Studio Integration Services Solutions Integration Services Packages DTS to SSIS.
Practical MSBI(SSIS, SSAS,SSRS) online training. Contact Us: Call: Visit:
Microsoft BI Online Training AcuteSoft: India: , Land Line: +91 (0) USA: , UK.
Template Package  Presented by G.Nagaraju.  What is Template Package?  Why we use Template Package?  Where we use Template Package?  How we create.
PROJECT ORIENTED ONLINE TRAINING ON MSBI (IS,AS,RS)
MANAGEMENT DATA WAREHOUSE AND DATA COLLECTOR Ian Lanham.
Integrating Data Lesson 6.
Presented By: Jessica M. Moss
Visual Basic 2010 How to Program
What Is The SSIS Catalog and Why Do I Care?
Explore the Integration Services Catalog
Visual Studio Database Tools (aka SQL Server Data Tools)
Designing and Implementing an ETL Framework
Welcome to WideWorld Importers
Report Builder as Self Service BI Solution
Basic Work-Flow with SQL Server Standard
Deploying and Configuring SSIS Packages
Introducing New Team-based Data Integration with SSIS
Azure Automation and Logic Apps:
Populating a Data Warehouse
Populating a Data Warehouse
Populating a Data Warehouse
Populating a Data Warehouse
Populating a Data Warehouse
Populating a Data Warehouse
SSIS Deployment Smackdown!
SSIS Deployment Smackdown!
Make Your PACKAGES Communicate BETTER
SSIS Data Integration Data Warehouse Acceleration
Custom Auditing in SSIS
SSIS Data Integration Data Warehouse Acceleration
Michelle Haarhues Keeping up with SSMS.
Azure Data Factory V2: SSIS in the Cloud or Not?
SSIS Data Integration Data Warehouse Acceleration
Just Enough SSIS Scripting to be Dangerous.
Optimizing the ETL Development process using BIML
Presentation transcript:

SSIS Templates, Configurations & Variables Daniel Bowlin MCITP SSIS Templates, Configurations & Variables sqlbidan@gmail.com

A little about me SQL data warehouse developer with Time Warner Cable Founder of the Capital Area SQL Server User Group in Albany NY Certified in the MS SQL Server BI stack About 15 years working with SQL Server and 4 years specialized in the BI Stack I blog on www.BIDN.com

Opening Credits I first learned about management frameworks and templates from two sources: SQL Server 2008 Integration Services, Problem-Design-Solution Most code presented is from this book http://www.amazon.com/Microsoft-Server-2008-Integration-Services/dp/0470525762/ref=sr_1_1?s=books&ie=UTF8&qid=1367539127&sr=1-1&keywords=ssis+problem+design+solution Andy Leonard http://sqlblog.com/blogs/andy_leonard/archive/2011/09/16/designing-an-ssis-framework.aspx

What is a Management Framework? Standardized development methods Metadata (configuration) change management VERY useful for moving through environments Package management and auditing Reusability Package template Helps reduce development time

Management Framework Components Logging mechanism Package start & finish Individual task start & finish Package/task errors Variable value changes Optional ETL components Source vs. Target row count comparisons Standard deviation comparisons over time Additional ETL logging components

Logging Mechanisms A task that will log the start of a package using Execute SQL Task, a stored procedure, and some package values A task to log the completion of the package, same as start. Event handlers to log events in your packages execution

Logging Mechanisms Event handlers OnError logging for the package OnPreExecute for tasks OnPostExecute for tasks OnVariableValueChanged

Management Framework Components Common connections Database Mail Configuration management of Connectors Configurable variables Package template to pull it all together

Package Template A Package Template is the component that puts all the other components in one spot. Stored in (2008) Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\ProjectItems\DataTransformationProject\DataTransformationItems Accessed from an SSIS Project Right click Project>>Add>>New Item

Template Demo Review the components of template.

Package Configurations Package configurations are like any config file. They help define the parameters used to run a program/package. Typically Name – Value pairs Can be different in different environments Can be manipulated during package execution Parent Package configurations

Package Configurations Framework configurations contain 3 components An environment variable An XML File A SQL Server database table.

Package Configurations The environment variable is pretty simple it is just a name value pair pointing to your XML file. System Applet in Control Panel Advanced Settings >> Environment Variables >> System Variables >> New Name: SSIS_Config_File Value: Path to XML File

Package Configurations XML File contains the connection information to the database

Package Configurations Database contains a table with all the configuration values the package will need. Dbo. SSIS Configurations

Package Configurations The configuration table can contain property settings for: Variables Event Handlers Connection Managers Package properties Executable components

Package Configurations

Package Configurations A few notes The configuration entry pointing to the Environment variable should be at the top of your configurations. The environment is read from the computer that calls the task. Tests using a local copy of SSMS may produce misleading results

Package Configurations Parent Package Configurations Allow a parent package to control the any configuration value of a child package. Can direct the child package to behave differently depending on the value of the configuration variables passed from the parent.

Configurations Demo Demo configurations Add a new connection Make the new connection a configuration Run a sample package Change configuration Rerun sample package

Development Standards Every shop should have development standards and stick to them Naming conventions ProjectName_PackageName ProjectName_PackageName_VariableName Parent_VariableName Conn_DatabaseName (no server name) Deployment standards Promote to production standards Templates and configurations help keep things consistent. Annotate

Variable development & use Along with configurations, variables can build a lot of flexibility into your packages Any value that you think might change at any time in the future should be put in a variable and given a configuration. Date ranges (in days ago) Distribution lists

Variable development & use Variables are useful for Full queries Open query development Storing values retrieved from a db for use elsewhere in your package. In ETL processes I consider variables for row counts a necessity. Error handling management Error counters Max error count.

Variable development & use Variables can be used to manage program flow in precedence constraints. Variables are limited in their use only by your imagination, time for development, and flexibility needs. A cool thing about variables is that they can have configurations as well

Variable development & use Show a few samples of variable use

Review Management Framework & framework components Logging and Auditing Template packages Package Configurations Development standards Variable use

Questions ????