dbTalk Databases Forums  

Array parameters for SSIS packages?

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


Discuss Array parameters for SSIS packages? in the microsoft.public.sqlserver.dts forum.



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

Default Array parameters for SSIS packages? - 08-12-2006 , 06:02 AM






Hi,

I use a SSIS package to load data with specific ID's from one database to
another. Currently, I use a variable called "IdFilter" which I set to the Id
I want to load data for. I then use a Conditional Split with the condition
"Id == @[User::IdFilter]" to fetch only the rows I want before storing them
in the destination table.

Due to the fact that this package is run for a lot of Id's, and that the
package takes a while to run, I would like to make it possible to specify
several Id's in the IdFilter, so the source SQL query is a bit like "SELECT
* FROM Source WHERE Id IN (1,2,3,...)", where 1,2,3 are the Id's specified
in the IdFilter. Any suggestions as to how this can be accomplished?
Preferably, I want to avoid hacks like comma-separating the Id's in a string
parameter, but all suggestions are welcome...


Regards,
Nils Magnus Englund



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.