2017-04-21 126 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