How to: Create and Deploy a Cache for the Lookup Transformation
You can create and deploy a cache file (.caw) for the Lookup transformation. The reference dataset is stored in the cache file.
The Lookup transformation performs lookups by joining data in input columns from a connected data source with columns in the reference dataset.
You create a cache file by using a Cache connection manager and a Cache Transform transformation. For more information, see Cache Connection Manager and Cache Transform.
To learn more about the Lookup transformation and cache files, see Lookup Transformation.
To create a cache file
In Business Intelligence Development Studio, open the Integration Services project that contains the package you want, and then open the package.
On the Control Flow tab, add a Data Flow task.
On the Data Flow tab, add a Cache Transform transformation to the data flow, and then connect the transformation to a data source.
Configure the data source as needed.
Double-click the Cache Transform, and then in the Cache Transformation Editor, on the Connection Manager page, click New to create a new Cache connection manager.
In the Cache Connection Manager Editor, on the General tab, configure the Cache connection manager to save the cache by selecting the following options:
Select Use file cache.
For File name, type the file path.
The system creates the file when you run the package.
Note
The protection level of the package does not apply to the cache file. If the cache file contains sensitive information, use an access control list (ACL) to restrict access to the location or folder in which you store the file. You should enable access only to certain accounts. For more information, see Controlling Access to Files Used by Packages.
Click the Columns tab, and then specify which columns are the index columns by using the Index Position option.
For non-index columns, the index position is 0. For index columns, the index position is a sequential, positive number.
Note
When the Lookup transformation is configured to use a Cache connection manager, only index columns in the reference dataset can be mapped to input columns. Also all index columns must be mapped.
For more information, see Cache Connection Manager Editor.
Configure the Cache Transform as needed.
For more information, see Cache Transformation Editor (Connection Manager Page) and Cache Transformation Editor (Mappings Page).
Run the package.
To deploy a cache file
In Business Intelligence Development Studio, open the Integration Services project that contains the package you want, and then open the package.
Optionally, create a package configuration. For more information, see How to: Add a Package Configuration.
Add the cache file to the project by doing the following:
In Solution Explorer, select the project you opened in step 1.
On the Project menu, click AddExisting Item.
Select the cache file, and then click Add.
The file appears in the Miscellaneous folder in Solution Explorer.
Configure the project to create a deployment utility, and then build the project. For more information, see How to: Create an Integration Services Package Deployment Utility.
A manifest file, <project name>.SSISDeploymentManifest.xml, is created that lists the miscellaneous files in the project, the packages, and the package configurations.
Deploy the package to the file system. For more information, see How to: Deploy a Package.