SSIS how to set connection string dynamically from a config file

后端 未结 5 479
南方客
南方客 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 03:02

    Some options:

    1. You can use the Execute Package Utility to change your datasource, before running the package.

    2. You can run your package using DTEXEC, and change your connection by passing in a /CONNECTION parameter. Probably save it as a batch so next time you don't need to type the whole thing and just change the datasource as required.

    3. You can use the SSIS XML package configuration file. Here is a walk through.

    4. You can save your configrations in a database table.

提交回复
热议问题