Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSIS package without using view table

Status
Not open for further replies.

jj22171

MIS
Jun 22, 2007
39
0
0
CA
I'm trying to write an SSIS package with 3 important tasks. Task 1 queries from a couple of joined tables.
Task 2 queries from another couple of joined tables.
Task 3 joins results from Task 1 and Task 2 and write the results into a staging table.

My option at the moment is to use view for each query in Tasks 1 & 2, join both views and use it as source for Task 3.

What's the best option without using view since I find it so slow?

thanks
 
Create two data sources, and use a Merge task or a merge join task to join the recordsets together.

Denny
MVP
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / SQL 2005 BI / SQL 2008 DBA / SQL 2008 DBD / SQL 2008 BI / MWSS 3.0: Configuration / MOSS 2007: Configuration)
MCITP (SQL 2005 DBA / SQL 2008 DBA / SQL 2005 DBD / SQL 2008 DBD / SQL 2005 BI / SQL 2008 BI)

My Blog
 
Thanks, Denny.
My first attempt was not successful as it gave me more records than expected. Then I realized one of the source tables has lots of blank/null values in one of the key fields. Once they were filtered-out, Merge Task worked like a charm.

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top