4

I use SSIS 2016. I have created a Package Part Control Flow as you can see in this image :

enter image description here

The perpose of this Package Part Control Flow is to have a loop on the all files in one folder and transfer all files to another folder.

I have a Foreach Loop Container and a File System Task.

enter image description here

I have created these variable

enter image description here

Then I have created two Flat File Connection Manager:

enter image description here

Now I need to configure expressions for Connection String of each Flat File Connection Manager.

enter image description here

But as you can see I don't have access to my variables.

enter image description here

I need to be able to configure my connection managers inside the Package Parts Control Flow and then in package where I use this Package Parts Control Flow I will pass the values of variables.

enter image description here

The way I would like send the value for variables of Package Parts Control Flow.

enter image description here

Can I have an expression on ConnectionString of Flat File Connection Manager inside the Package Parts Control Flow by using the variable?

Hadi
  • 36,233
  • 13
  • 65
  • 124
Ardalan Shahgholi
  • 11,967
  • 21
  • 108
  • 144
  • I think you need to work with project parameters https://learn.microsoft.com/en-us/sql/integration-services/integration-services-ssis-package-and-project-parameters – Yahfoufi Jun 06 '17 at 11:57
  • 1
    @Hadi : I tag you here because i think may be you know how can we have a dynamic connection manager in Package Part – Ardalan Shahgholi Jun 06 '17 at 15:19

1 Answers1

3

After reading multiple articles and users feedbacks.

Unfortunately, you cannot use dynamic connections with package parts.

Control flow Package parts has some limitations, which make it useless in many cases.

References

Hadi
  • 36,233
  • 13
  • 65
  • 124