sql - Setting a variable with multiple rows in SSIS -


i need in ssis:

from 1 sql table need id values, using simple sql query:

select id identifier value not null.

i've got result:

enter image description here

as final result need generate , set variable in ssis final value:

@var = '198','120','acp','120','pqu'

which need use later in odbc expression.

is possible in ssis?

just clarify: image little example of can first part of process. mean, number of id need unknown.

use simple query

declare @test table(id nvarchar(10)) insert @test values('186'), ('120'), ('acp'), ('120'), ('pqu')  declare @id varchar(8000)  select @id = concat(coalesce(@id + ',''', ''''), id, '''') @test  select @id 

result

'186','120','acp','120','pqu' 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -