SSIS how to set connection string dynamically from a config file

后端 未结 5 486
南方客
南方客 2020-11-30 02:14

I am using SQL Server Integration Services (SSIS) in SQL Server Business Intelligent Development Studio.

I need to do a task that is as follows. I have to read from

5条回答
  •  温柔的废话
    2020-11-30 02:56

    Here's some background on the mechanism you should use, called Package Configurations: Understanding Integration Services Package Configurations. The article describes 5 types of configurations:

    • XML configuration file
    • Environment variable
    • Registry entry
    • Parent package variable
    • SQL Server

    Here's a walkthrough of setting up a configuration on a Connection Manager: SQL Server Integration Services SSIS Package Configuration - I do realize this is using an environment variable for the connection string (not a great idea), but the basics are identical to using an XML file. The only step(s) you have to change in that walkthrough are the configuration type, and then a path.

提交回复
热议问题