dbTalk Databases Forums  

Control flow problem in SSIS package

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Control flow problem in SSIS package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nils Magnus Englund
 
Posts: n/a

Default Control flow problem in SSIS package - 08-16-2006 , 11:09 AM






Hello,

In my SSIS package, I generelly load a lot of data for all customers from
database A to database B. However, sometimes, I only want to load data for
specific customers. I've added a string variable used as a parameter called
CustomerFilter, and a SplitByComma SP which, given a comma-separated input
string, returns one row for each element in the CSV-list (although this is
somwhat of a hack, I didn't find a better way to pass arrays as "parameters"
into the SSIS package).

However, due to performance, I don't want to put all customers into that
list when I'm running the package for all customers; I simply want it to
load all data. Any suggestions how I might do this without having to create
two separate packages, and without any "dirty hacks" (like scripting a
manual change of the SQL statements in the data flow tasks)?

To shed some more light on my problem; what I basically want to do is this:

If a list of customers is defined, alter all data flow tasks to include
"WHERE CustomerId IN (ResultFromSplitByComma)".

All suggestions are very welcome!

Thanks.

Regards,
Nils Magnus Englund



Reply With Quote
  #2  
Old   
Barry
 
Posts: n/a

Default Re: Control flow problem in SSIS package - 08-16-2006 , 01:21 PM






Hello,

This website may be of some use to you.

http://www.sommarskog.se/arrays-in-sql.html

It has various Functions/Solutions for splitting arrays in SQL

Hope this helps

Barry


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.