constructed by provide structure in packages provide services to...

17

Upload: others

Post on 22-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide
Page 2: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide
Page 3: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Constructed by Control Flow Elements

Provide structure in packages

Provide services to tasks

Page 4: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Common Tasks:

Data Flow task

Data tasks

Analysis Services task

File and Network Protocol Tasks

Scripting tasks

SQL Server tasks

Maintenance tasks

Page 5: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Task Definition

Data Flow task • Runs data flows to extract data, apply

column level transformations, and load data

Bulk Insert task • Efficiently copies large amounts of data

(text or BCP native format) into a SQL Server table or view

Execute SQL task • Runs SQL statements or stored procedures

from a package

Data Profiling task • Identifies potential problems with data

quality

Page 6: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Task Definition

Analysis Services Execute DDL task

• Runs data definition language (DDL) statements that can create, drop, or alter mining models and multidimensional objects such as cubes and dimensions

Analysis Services Processing task

• Processes Analysis Services objects such as cubes, dimensions, and mining models

Data Mining Query task

• Runs SQL statements or stored procedures from a package

Page 7: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Task Definition

File System task Creates, moves, or deletes directories and files

FTP task Performs FTP upload and download actions

Message Queue task

Allows messages to transmit between packages or to custom applications

Send Mail task Formats and sends an email message

Web Service task Executes a Web service method

XML task Retrieves, merges, validates, alters, and saves XML documents

Page 8: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Task Definition

Script task • Allows the execution of scripts for actions

not available in other tasks

Execute Process task

• Runs an application or batch file

ActiveX Script task

• Legacy ActiveX capability. Do not use for new development.

Page 9: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Precedence constraints determine a package’s execution flow

Page 10: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Precedence executable must run successfully for the constrained executable to run

Success

Precedence executable must not succeed for the constrained executable to run

Failure

Constrained executable runs after the precedence executable runs

Completion

Page 11: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Must be a valid Integration Services expression that evaluates to True or False

Can be combined with constraint values

Expression only

Expression and constraint value

Expression or constraint value

Task A

Task B

Task C

Success and Condition 1

Success and Condition 2

Multiple constraints can be combined with AND/OR logic

Page 12: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Containers provide a scope for defining variables

Containers are different from the grouping functionality

Containers provide scope for precedence constraints

Page 13: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Manage properties on multiple related tasks

Debugging by isolating actions

Provide a scope for variables

Sequence Container

Task C Task A Task B

Page 14: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

For Loop

Property Purpose

InitExpression • Initializes the counter (@Counter=0)

EvalExpression • Defines condition for exiting loop

(@Counter > 5)

AssignExpression • Specifies how the counter is incremented

(@Counter = @Counter + 1)

Uses a variable as a counter

Task A

Task B Evaluate and increment variable

Page 15: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide

Foreach Enumerator

Use case

File Perform tasks for all files in a folder with the .txt extension

Item Enumerate the names of executables and working directories that an Execute Process task uses

ADO Collect all rows in an ADO recordset

AD.NET Enumerate the schema information about a data source, such as a list of tables

From Variable Enumerate an array, an ADO.NET DataTable, an Integration Services enumerator,etc

NodeList Enumerate the result set of an XML Path Language (XPath) expression

SMO Act on SQL Management Objects, such as getting a list of the views in a database

Page 16: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide
Page 17: Constructed by Provide structure in packages Provide services to …download.microsoft.com/documents/hk/technet/seminar/2010... · 2018-12-05 · Provide structure in packages Provide