SSIS: script task (vs15) not work when deploy on sql server 2014

自作多情 提交于 2019-11-28 12:38:20

This worked for me:

  1. Install SSDT-BI for Visual Studio 2013.
  2. Open your solution in Visual Studio 2015.
  3. Select your SSIS Project in the Solution Explorer.
  4. In the Project menu select Properties.
  5. In the Property Pages dialog select Configuration Properties -> General
  6. Under Deployment Target Version change the Target Server Version to "SQL Server 2014."
  7. Clean and rebuild solution and redeploy.

In the revised version of the SSDT (now 14.0.61x), there is a fix.

  1. Install new version. (SSDT For download)

  2. Right click project > Properties > Configuration Properties > General > TargetServerVersion - Update to SQL Server 2014 > Redeploy.

Even though this question is a bit dated, I am getting the same error on the targeted server, but in a slightly different context:

  1. created an SSIS package targeting SQL Server 2014
  2. add a script task
  3. deployed it to SQL Server 2014
  4. package validation failed with "The Script Task uses version 15.0 script that is not supported in this release of Integration Services..."

I used the following environments for the development and deployment:

The current SSDT version 17.1 provides a support to target SQL Server 2014 - SQL Server vNext. The current version of the SSDT resolves the issue in the question by providing targeted option in the project configuration as already mentioned.

I noticed that the above SSIS project works on the targeted server if deployed with:

  1. VS 2015 (Select SSIS Project -> Right Click -> Select Deploy)
  2. SQL Server 2014 SSIS Deployment Wizard (probably available only if you have a local instance installed; found in the Microsoft SQL Server 2014 Windows Start Menu)

If you try to deploy it using SQL Server Management Studio v17.1 version of the SSIS Deployment Wizard the deployed package fails. The deployed script task is deployed as version 15.0 that is not supported on the SQL Server 2014.

If I deploy the same package using SSIS Deployment Wizard from Microsoft SQL Server vNext CTP2.0 Windows Start Menu, which probably got added by installing SSMS 17.1, the deployed package script task fails with same error.

In summary:

  1. The latest SSDT v17.1 for VS2015 resolves above issue by providing targeted server configuration options
  2. It needs to be deployed through Visual Studio 2015
  3. It can be deployed using the targeted server version of the SSIS Deployment Wizard
  4. If using the latest SSMS v17.1 and build-in SSIS Deployment Wizard the SSIS package Script Task will fail on the targeted server for being upgraded to SQL Server 2017 version

Maybe this is by design, but it is very confusing and caught me of guard. Just in case this is a bug I submitted a bug report.

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