parameters - How to pass a variable to an SSIS package to be used in query -


i'm having issue when trying import data using ssis. have ssis package moves data 1 server / database server / database. @ moment query take rows in source db , move destination. need change select few rows moved using id filter. need pass id in parameter used filter dataset return select few rows. how 1 this? have simple ssis package 2 dataflow objects (source & destination) i've been looking @ may need change somewhat.

select  id,  [product type],  [product title] [view] id = <this should provided outside package> 

the package triggered tsql / stored procedure.

thanks.

use parameters. in ssis question mark ? being used parameter , order determines parameter name. use sql (inside source task):

select  id,  [product type],  [product title] [view] id = ? 

..then click parameters button:

enter image description here please note preview button (if try it) won't work (it throw error) can ignore , try run package stated here.

..and change parameter name 0 (zero) , set variable:

enter image description here

should work well.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -