Lab Topic 9 Extending SSIS Deploying and Configuring SSIS Packages Consuming Data
Lab Topic 9 Extending SSIS Deploying and Configuring SSIS Packages Consuming Data
Tasks:
Using Scripts in SSIS, Using Custom Components in SSIS. Creating an
SSIS Catalog, Deploying an SSIS Project, Running an SSIS Package in SQL
Server Management Studio, Scheduling SSIS Packages with, SQL Server
Agent. Exploring an Enterprise BI Solution, Exploring a Self-Service BI
Solution.
Custom Code in SSIS Script Task Basics
Drag OLE DB Source and Flat File Destination. Give a relationship between
both tasks.
Custom Code in SSIS Using a Script
Right click on Flat File Destination. Select edit and click New and save on
the desktop, and check the mapping. Click OK.
Custom Code in SSIS Using a Script
Under SSIS, click variable. Add a new variable and rename it as "mtlRows".
Custom Code in SSIS Using a Script
Drag the Row Count into Data Flow workplace. Give a relationship between the objects.
Custom Code in SSIS Using a Script
Right click on Row Count and Select mtlRows as a variable. Try to execute
from Data Flow.
Custom Code in SSIS Using a Script
Drag a Script Task into Control Flow and give a link between the two objects.
Right click on Script Task.
Custom Code in SSIS Using a Script
Type as - MessageBox.Show(“Done!”);
Click save. Click OK. Try to Execute.
Custom Code in SSIS Using a Script
Add one more Script Task and give a link. Right click and select edit on the second script task.
Custom Code in SSIS Using a Script
Edit the script as above. Click Save. Click OK. Try to execute.
Custom Code in SSIS Using a Script
Add two more Script Tasks and provide the same link as before. Right click on
Script Task 3, Select as Failure.
Custom Code in SSIS Using a Script
Under the Data Flow, right click and select Edit on OLE DB source.
Custom Code in SSIS Using a Script
Type the SQL command as "Select top 4000 name, bithdate, gender from
dimCustomer“ in SQL command text. Check the column and Click OK. Try to
Execute from Control Flow.
Deploying SSIS Packages
Input OLE DB Source and Flat File Destination. Give a link between them.
Deploying a Project
On-Demand Execution
▪ Occurs In The SQL Server Management Studio Interface
▪ T-SQL commands
▪ Windows PowerShell
▪ SSIS API
▪ DTExec command-line utility
Executing a Package
On-Demand Execution
▪ NOTE!
▪ DTExecUI cannot be used to execute packages created in SQL
Server 2012; only MSDB based packages
Automated Execution
▪ Package is executed based on a schedule created as part
of a SQL Server Agent job
Executing a Package
Click Yes.
Executing a Package
Under SQL Server Agent. Right click on Jobs, Select New Job.
Scheduling a Package
Under Advanced: Change to “1” in Retry attempts, and “2” in Retry internal (minutes). Click OK.
Scheduling a Package
Add one more schedule and change to a different day and time. Click OK. Click OK.
Q&A