How to add multiple file extensions to the Files: input field in the Foreach loop container SSIS

后端 未结 2 1852
-上瘾入骨i
-上瘾入骨i 2021-01-22 11:44

How could I add multiple file extensions to the Files: input field in the Foreach loop container in SSIS 2008.

I have currently entered as *.zip OR .c

2条回答
  •  难免孤独
    2021-01-22 12:33

    Step 1) Create a variable which store the file name with the extension.
    Step 2) Under the foreach loop container Map the variable which we created in step 1.
    Step 3) create a execute sql task inside the foreach loop container, add connection and under sql statement enter the code insert into tablename(filename) values (?).
    Step 4) Under parameter mapping select the variable which we created under variable name, changed the data type to nvarchar and changed parameter to 0.
    Step 5) With the help of string function then you can create an expression with the help of string function like right

提交回复
热议问题