SSIS - Changing references to a Variable/Parameter through all the project

為{幸葍}努か 提交于 2019-12-11 02:39:41

问题


I've created an SSIS project, thinking it will be deployed in Project Deployment mode.

A Lot of my packages have 2 Parameters (called P_OdsTbl and P_SrcEtl), and whenever I used Execute package task I bound the Child Parameters to the Parent Parameters.

I've since discovered that the project would be deployed in Package Deployment mode, which means I need to change the Parameters to Variables (V_OdsTbl and V_SrcEtl) and set their values with Variable Configurations.

I have many references to these two parameters inside the packages and going through all of them to change them manually is both time consuming and unsafe (I might miss some references).

Is there a way to search all the references through the project, or better yet; replace them with references to the new variables?


回答1:


As @TabAlleman mentioned you can use a text editor and replace text in .dtsx files since they are xml based files.

In addition, i will suggest using Notepad++ which contains a feature that allow user to find and replace in all files in a directory.

For more information check the following link:

  • How to find and replace line(s) in multiple files using Notepad++?
  • How to Find and Replace Words in Multiple Files



回答2:


You can use a text editor to search and replace the text in the .dtsx file.



来源:https://stackoverflow.com/questions/54644218/ssis-changing-references-to-a-variable-parameter-through-all-the-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!