Welcome to MSDN Blogs Sign in | Join | Help

Lookup Pattern: Key Generation

This pattern is used when you have transformation logic which relies on a key which might not already exist. If the lookup fails to find the key, a new key is generated with a script task so it can be used later on downstream. Optionally, the key could be inserted immediately into the reference table following the script task (multicast to send to an OLEDB Destination).

The way you generate the key will vary depending on the situation. If you don't need to worry about concurrency issues, you could use an Execute SQL Task in the control flow to retrieve the next or current maximum key value, and store it in a variable. You’d then increment it each time you go through the key generation process.

image

Published Saturday, November 22, 2008 8:28 PM by mmasson
Filed under:

Comments

# infoblog » Lookup Pattern: Key Generation

Saturday, November 22, 2008 11:48 PM by infoblog » Lookup Pattern: Key Generation

# Lookup Patterns

From the Lookup presentation I put together for the MS BI conference in October, here is a series of

Sunday, November 23, 2008 12:20 AM by SSIS Team Blog

# Lookup Pattern: Incremental persistent cache updates

The Cache Transform isn't currently able to update (i.e. append to) an existing persistent cache file.

Sunday, November 23, 2008 3:16 PM by SSIS Team Blog

# Learn more about Lookup and its new features: A compilation

The SQL Server Integration Services team added valuable new caching options (and scalability) to the

Monday, January 19, 2009 5:21 PM by Douglas Laudenschlager
Anonymous comments are disabled
 
Page view tracker