Package Samples

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

This sample works only with SQL Server 2005 and SQL Server 2008. It will not work with any version of SQL Server earlier than SQL Server 2005.

Integration Services includes sample packages that you can run or modify to learn how to work with the new features in Integration Services.

For information about installing the package samples, see Readme_Installing Sample Integration Services Packages.

SQL Server samples and sample databases must be downloaded and installed before you can view or work with them. For more information, see Considerations for Installing SQL Server Samples and Sample Databases.

The following table describes the Integration Services package samples that are available.

Name Description

Readme_Calculated Columns Package Sample

Demonstrates how to use the Aggregate and Derived Column transformations to compute values and write the results to a file.

Readme_Capture Data Lineage Package Sample

Demonstrates how to get lineage information about data, add it to the data flow, and write the source data and the lineage information to a table.

Readme_Process XML Data Package Sample

Demonstrates how to extract data from an XML data file by using an XPath operation, convert the data to a flat-file format, and insert the data into a text file.

Readme_Data Cleaning Package Sample

Demonstrates how to clean data by applying exact and fuzzy matching of new customers to existing customers, and how to identify duplicate customers by using fuzzy grouping.

Readme_Execute SQL Statements in a Loop Package Sample

Demonstrates how to run SQL CREATE TABLE statements in a loop, evaluate and clean data values, and insert data into tables.

Readme_Execute Process Package Sample

Demonstrates how to use the Execute Process task to run an executable that expands a CAB file, read the expanded data, and insert the data into a table.

Readme_Lookup Transformation Sample

Demonstrates how to use the Cache connection manager to implement the Lookup transformation in full cache mode. The transformation performs lookups on a reference dataset that is stored in a text file.

Readme_SMO Tables DBCC Package Sample

Demonstrates how to enumerate the user tables in the AdventureWorks2008R2 database by using SMO, use a Script task to retrieve the schema and table names, put the names into two variables, and use an Execute SQL task that executes a DBCC CHECKCONSTRAINTS command using the two variables.

Readme_AWDataWarehouseRefresh Package Sample

Demonstrates how to update the AdventureWorksDW data warehouse from the AdventureWorks2008R2 OLTP database.

Readme_Synchronizing Adventure Works DW Partitions Package Sample

Demonstrates how to automate the synchronization of partitions between relational and Analysis Services databases by using an Integration Services package. The sample package uses the Script task and the Analysis Services Execute DDL task, and illustrates the use of the ASSL and AMO technologies.

Readme_Execute SQL Parameters and Result Sets Sample

Demonstrates how to use a parameterized stored procedure and an SQL statement to query the AdventureWorks2008R2 database. The package stores the query results in package variables by mapping parameters and result sets to the variables.

Readme_Creating a Basic Package Tutorial: Lesson Packages

Demonstrates how to use the wizard to import data from Excel and load the data into a table.

Readme_Creating a Simple ETL Package Tutorial: Lesson Packages

Demonstrates how to use the Foreach Loop to read multiple flat files, and then transform the data. Also introduces logging and configurations.

Readme_Deploying Packages Tutorial: Lesson Packages

Demonstrates how to deploy packages and install them on the destination computer by using a deployment utility you create.

Readme_Exporting from ODBC to a Flat File Using a Wizard Tutorial: Lesson Packages

Demonstrates how to use the SQL Server Import and Export Wizard to export data from a SQL Server ODBC data source to an existing text file.

Readme_Change Data Capture for Specified Interval Package Sample

Demonstrates how to use change data capture functionality in Integration Services packages to perform an incremental load of all changes that occurred during a specified time interval.

Readme_Change Data Capture since Last Request Package Sample

Demonstrates how to use change data capture functionality in Integration Services packages to perform an incremental load of all changes that occurred since the previous request.

Important

These samples are provided for educational purposes only. They are not intended to be used in a production environment and have not been tested in a production environment. Microsoft does not provide technical support for these samples.

See Also

Other Resources

Programming Samples

Help and Information

Getting SQL Server 2008 R2 Assistance