3.2\9 ssis 2008r2_training - controlflow tasks

Post on 22-Mar-2017

215 Views

Category:

Data & Analytics

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Presented by: Pramod Singla

Pramod_singla@yahoo.co.in

.

Recap and Q&A SQL Server Tasks

◦ Demo: Bulk Insert Task◦ Demo: Execute SQL task◦ Demo: Transfer database task◦ Demo: Transfer Login Task◦ Demo: Transfer Master Stored Proc task◦ Demo: Transfer SQL server object Task

Database Maintenance Tasks◦ Demo: Backup database Task◦ Demo: Execute SQL server Agent job Task◦ Demo :History Cleanup task◦ Demo: Rebuild Index task◦ Demo: Update Statistics tasks

Summary

Control Flow Tasks Data Preparation Tasks

◦ Demo: File System Task◦ Demo: FTP Task◦ Demo: XML Task◦ Demo: Data Profiling Task◦ Demo: Data Profiling Viewer

Process Communication Tasks◦ Demo: Execute Package Task◦ Demo: WMI Data Reader Task◦ Demo: Execute Process Task –folder zip

An efficient way to copy large amounts of data into a SQL Server table or view Can transfer data only from a text file into a SQL Server table or view.  Can use a format file in the Bulk Insert task object Only members of the sysadmin fixed server role can run a package

that contains a Bulk Insert task Mainly used for backward compatibility. Use Data flow instead

Runs SQL statements or stored procedures Can handle multiple batch of statements. Each batch separated by GO Only one statement can return a result set and it must be the first statement in the batch If the task uses parameter binding, all the queries in the batch must have the same number and types of parameters.

Transfer Database task transfers a SQL Server database between two instances of SQL Server The database can be transferred by using online or offline mode Offline mode requires that you specify the network file shares on the source and destination servers that contain the database files sysadmin can run package using offline mode Sysadmin or Database owner can run package using online mode Path format \\computername\Program Files\myfolder\ or \\computername\c$\Program Files\myfolder\ Kill all connection before applying offline mode

The Transfer Logins task transfers one or more logins between instances of SQL Server  the user must be a member of the sysadmin server role on both servers.

The Transfer Master Stored Procedures task transfers one or more user-defined stored procedures between master databases on instances of SQL Server  This task does not copy system stored procedures Must be a member of the sysadmin server role or have permission to created stored procedures in the master database on the destination server.

 Transfer SQL Server Objects task transfers one or more types of objects in a SQL Server database Some options apply only to SQL Server. For example, only SQL Server supports schema

The Back Up Database task performs different types of SQL Server database backups.

runs SQL Server Agent jobs SQL Server Agent must be running

 deletes entries in the following history tables in the SQL Server msdb database◦ backupfile◦ backupfilegroup◦ backupmediafamily◦ backupmediaset◦ backupset◦ restorefile◦ restorefilegroup◦ restorehistory

The task includes a property for specifying the oldest date of data retained in the history tables. 

rebuilds indexes in SQL Server database tables and view encapsulates an ALTER INDEX REBUILD statement This task encapsulates an ALTER INDEX REBUILD statement with the

following index rebuild options:◦ Specify a FILLFACTOR◦ Set PAD_INDEX = ON◦ Set SORT_IN_TEMPDB = ON◦ Set IGNORE_DUP_KEY = ON◦ Set ONLINE = ON

Updates statistics tables and indexes This task executes the UPDATE STATISTICS statement You can specify the sampling %

 SQL Server Tasks◦ Bulk Insert Task◦ Execute SQL task◦ Transfer database task◦ Transfer Login Task◦ Transfer Master Stored Proc task◦ Transfer SQL server object Task

Database Maintenance Tasks◦ Backup database Task◦ Execute SQL server Agent job Task◦ History Cleanup task◦ Rebuild Index task◦ Update Statistics tasks

DEMO3_2_ControlFlowTask_2_OnlioneDemo.dtsx

Contact me : ◦ Pramod_singla@yahoo.co.in◦ http://pramodsingla.wordpress.com/

Microsoft Resources:◦ http://pluralsight.com/training/courses/TableOfContents?

courseName=ssis-basic&highlight=stacia-misner_08-ssis-basic-debugging!stacia-misner_06-ssis-basic-expressions*2,3#08-ssis-basic-debugging

top related