2017-04-21 90 views
2

以前发布过类似于我的问题的东西,但不完全如此。我有Visual Studio 2015版本14.0.25431.01更新3.我用此开发包并将项目部署到SQL Server 12.0.4100.01。包运行良好。然后,我尝试从ispac部署和我得到的错误:SQL Server Visual Studio SSIS版本控制

There was an exception while loading Script Task from XML: System.Exception: The Script Task redacted uses version 14.0 script that is not supported in this release of Integration Services. To run the package, use the Script Task to create a new VSTA script. In most cases, scripts are converted automatically to use a supported version, when you open a SQL Server Integration Services package in %SQL_PRODUCT_SHORT_NAME% Integration Services. at Microsoft.SqlServer.Dts.Tasks.ScriptTask.ScriptTask.LoadFromXML (XmlElement elemProj, IDTSInfoEvents events)

我检查在Visual Studio中的XML和解压的ispac的代码在每个比较和所有版本的代码是一样的。显然,从Visual Studio部署时会发生升级/降级操作,但在从ispac部署时不会发生升级/降级操作。有没有办法来创建一个版本兼容的ispac?

回答

0

您可以更改项目性质TargetServerVersion:SQL服务器2012/2014/2016

enter image description here

脚本语言将自动更改为微软的Visual C#2010/2012/2015。

注意:从脚本任务的第一个复制代码并保存它。

enter image description here

+0

我想,在我张贴的问题;它不能解决问题。从VS部署是没有问题的,但是从生成的ispac进行部署是版本控制的问题。显然VS在部署发生时会进行某种版本更正。在ispac不在VS中的情况下,这种情况不会发生,并且由于版本不兼容,程序包在脚本任务中失败。 – Thursty

相关问题