简体   繁体   English

更改SSIS包中的硬编码服务器名称

[英]Change hard coded server name in SSIS packages

I have a conversion issue. 我有转换问题。 We have approximately 100 SSIS packages that were written with a hard coded SQL server name. 我们大约有100个SSIS程序包,这些程序包使用硬编码的SQL Server名称编写。

We have just been informed that the server name we currently use is changing to a new name. 我们刚刚被告知,我们当前使用的服务器名称正在更改为新名称。 I am trying to find out if there is any tools, apps, Powershell scripts, et cetera that can be used to make this change without having to manually open up each package and make the changes. 我试图找出是否有任何工具,应用程序,Powershell脚本等可以用于进行此更改,而无需手动打开每个软件包并进行更改。 By the way, almost all the packages are encrypted. 顺便说一下,几乎所有的软件包都是加密的。

How about using a config file to replace the connection string? 如何使用配置文件替换连接字符串?

It won't matter what the hard-coded value currently is as the config will replace it. 硬编码值当前是什么都无所谓,因为配置将替换它。

Personally, I develop all packages to run in DEV (with a hard-coded server/file share reference), but apply a config when running through agent. 我个人开发了所有在DEV中运行的程序包(带有硬编码的服务器/文件共享参考),但是在通过代理运行时应用了配置。 That way when you promote packages from DEV to TEST and PROD all you have to do is update the config with the new conn string and file share location. 这样,当您将软件包从DEV升级到TEST和PROD时,您要做的就是用新的conn字符串和文件共享位置更新配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SQL Server 2008将硬编码对架构名称的引用转换为变量的最佳方法 - Sql server 2008 best way to turn hard coded references to schema name into a variable 如何在SQL Server上向查询结果添加硬编码文字? - How to add hard-coded literals to a query results on SQL Server? SQL Server-查询时间长且带有硬编码日期 - SQL Server - Query Taking Long Time with Hard Coded Dates 是否可以恢复在SQL Server中部署的SSIS包? - Is it possible to recover the SSIS packages that are deployed in SQL Server? 在postgres中进行硬编码选择 - hard coded selecting in postgres Oracle APEX 应用程序生成器:搜索特定员工并在硬编码文本字段中返回他们的姓名、薪水和部门 - Oracle APEX Application Builder: Search for specific employee and return their name, salary & department in an hard coded textfield 参数不作为硬编码值工作 - Parameter not working as hard coded value 更改查询以包含派生数据而不是硬编码数据 - Change Query to include derived data rather than hard-coded data 如何最好地在SQL Server存储过程中找到硬编码的英语字符串? - How best to find hard-coded English language strings in SQL Server stored procedures? SQL Server传入字符串值,然后查看它是否在值的硬编码列表中,并返回int - SQL Server pass in string value and see if it is in a hard-coded list of values and return int
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM