Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to manage with the disabled/Non existing Source Data


How to manage with the disabled/Non existing Source Data

Author
Message
ptjj
ptjj
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
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.
Attachments
DFT.JPG (4 views, 54.00 KB)
CFT.JPG (7 views, 38.00 KB)
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16548 Visits: 13210
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search