Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Using Temporary Tables across different tasks in SSIS Expand / Collapse
Posted Thursday, October 11, 2012 12:36 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, January 21, 2014 4:00 AM
Points: 27, Visits: 84

We need to create a temporary table in Execute SQL Task and access it in subsequent Data Flow Task. I tried Retain Connection to True and access the temp table in DFT. But the package fails. Any pointers please?
Post #1371229
Posted Thursday, October 11, 2012 8:46 AM



Group: General Forum Members
Last Login: Wednesday, April 16, 2014 9:25 AM
Points: 7,070, Visits: 12,523
SSIS needs a concrete table to build metadata from when designing the DFT. Try using a concrete table for design then changing the package to use a temp table at runtime using Variables and Expressions. You may also need to set DelayValidation to True on some components so it does not try validating the metadata until execution.

There are no special teachers of virtue, because virtue is taught by the whole community. --Plato

Believe you can and you're halfway there. --Theodore Roosevelt

Everything Should Be Made as Simple as Possible, But Not Simpler --Albert Einstein

The significant problems we face cannot be solved at the same level of thinking we were at when we created them. --Albert Einstein

1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples. --Giordy
Post #1371556
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse