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

How to manage with the disabled/Non existing Source Data Expand / Collapse
Author
Message
Posted Friday, April 30, 2010 1:52 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, May 28, 2010 12:46 AM
Points: 8, Visits: 18
Hi,
I have situation that in my DFT(Which is attached "DFT") i'm taking the 3 rawfiles as my source for doing the transformation i need to manage these trasformation when the "Second two Raw files" are not exist in my machine i.e if i disable the Controls which produce these raw files(Attached is the CFT); How can i manage these transformations with out any issue.


  Post Attachments 
DFT.JPG (3 views, 54.20 KB)
CFT.JPG (6 views, 38.26 KB)
Post #913505
Posted Friday, April 30, 2010 3:00 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:25 PM
Points: 13,511, Visits: 11,300
I think there are two options (since you just can't disable components in the data flow task):

* write a script component that functions as a RAW file source. This script task will check the existence of the file first. If it exists, it will read the rows, otherwise it will output 0 rows.

* Split up the dataflow in 3 different data flows. For each dataflow, put a script task in front that checks the existence of the file. Put the result in a variable that you use in the precedence constraint to control if the corresponding dataflow task may or may not start. While you're at it, store the temporary result in staging tables or temp tables. This is much easier to join and manipulate and you won't need the sort components and the merge join components.





How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #913524
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse