简体   繁体   中英

How to change file of Flat File Source in a SSIS Package by code in C#?

I can't seem to figure out how to do this. I can't find something recently made that helps me do this. I know its not a good question but maybe a short answer in the right direction? What to look at to accomplish this?

Take a look at this link which should help you get your project off the ground too.

MSDN LInk

this link also provides a step by step solution

Step by Step Guide

hopefully this will be enough to get you started

You need to look at configurations. Basically, what you do is set the connection string for the file connection to a variable. Then you use the configuration to determine the file location at runtime. The C# code could update the configuration with the new value just before running the SSIS package. There are multiple ways to do configuration and they cary by version of SSIS that you are using, so I can't go further into how to set up the configuration, you need to read through the manual for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM