Click here to monitor SSC
SQLServerCentral is supported by Redgate
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
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
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 (4 views, 54.20 KB)
CFT.JPG (7 views, 38.26 KB)
Post #913505
Posted Friday, April 30, 2010 3:00 AM



Group: General Forum Members
Last Login: Today @ 2:09 AM
Points: 15,500, Visits: 13,163
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 SQLKover.

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

Add to briefcase

Permissions Expand / Collapse