简体   繁体   English

将SSIS套件从SQL Server 2008 R2移至SQL Server 2016

[英]Move SSIS Packages from SQL Server 2008 R2 to SQL Server 2016

We are moving all of our SSIS packages from SQL Server 2008 R2 to SQL Server 2016. I suspect each SSIS package will need to be upgraded but I have been told otherwise. 我们将所有SSIS软件包从SQL Server 2008 R2迁移到SQL Server2016。我怀疑每个SSIS软件包都需要升级,但有人告诉我否则。

Will all SSIS packages need to be upgraded to to work on the new SQL 2016 server? 是否需要升级所有SSIS程序包才能在新的SQL 2016服务器上工作? Should they be upgraded on the SQL 2008 R2 Server and then moved to the new Server? 是否应该在SQL 2008 R2服务器上对其进行升级,然后再将其迁移到新服务器上? Or should we move the packages and then do the upgrades? 还是我们应该先移动软件包然后进行升级?

Also we have a large number of SSIS packages to upgrade. 另外,我们还有大量的SSIS包需要升级。 Will the SSIS Upgrade Wizard do these upgrades in bulk? SSIS升级向导会批量执行这些升级吗?

Here is a rough process that I am proposing we follow: 我建议我们遵循以下粗略流程:

  • Use Data Migration Assistant to check for potential issues 使用数据迁移助手检查潜在问题
  • Use SSIS Upgrade Wizard to update the packages 使用SSIS升级向导更新软件包
  • Manually resolve any issues 手动解决任何问题
  • Test the packages 测试包装

Are there any other things I should be concerned with? 我还有其他需要关注的事情吗?

The way we are upgrading is to create new projects/solutions in SSDT 2016 (Visual Studio), import the existing 2008 packages into the 2016 projects, and letting Visual Studio perform the upgrade while converting them to the Project Deployment model. 我们升级的方式是在SSDT 2016(Visual Studio)中创建新项目/解决方案,将现有的2008包导入2016项目中,并让Visual Studio执行升级,同时将它们转换为Project Deployment模型。 Then we deploy them to the 2016 SSIS Server. 然后,将它们部署到2016 SSIS服务器。

There are multiple ways to do it, and which way is "best" is a matter of opinion and may vary from case to case. 有多种方法可以做到这一点,哪种方法“最好”是一个意见问题,并且可能因案例而异。

I upgraded a set of SQL Server Integration Service packages recently by just importing them to a SQL Server Data Tools project. 我最近通过将一组SQL Server Integration Service软件包导入到SQL Server数据工具项目中来对其进行升级。

The upgrade is done automatically and hands free by Visual Studio . 升级是自动完成的, Visual Studio无需动手。 Then you can attach them to 2016 SQL Server Integration Service . 然后,您可以将它们附加到2016 SQL Server集成服务

I also recommend you check the following link from Microsoft that describes how to upgrade SSIS packages using the Package Upgrade Wizard : 我还建议您检查Microsoft的以下链接,该链接描述了如何使用“ 程序包升级向导”升级SSIS程序

Upgrade Integration Services Packages Using the SSIS Package Upgrade Wizard 使用SSIS包升级向导升级Integration Services包

I agree that the best way to migrate is to create a new project in the VS 2016 solution, as the projects for VS 2008 and VS 2016 differ and you can not simply migrate them with any tool. 我同意最好的迁移方法是在VS 2016解决方案中创建一个新项目,因为VS 2008和VS 2016的项目有所不同,您不能简单地使用任何工具进行迁移。

Here were my steps for migrating: 1) Open Command Prompt, run SSISUpgrade.exe from C:\\Program Files\\Microsoft SQL Server\\130\\DTS\\Binn (Note path may vary depending on the version of SSDT you are using) 这是我的迁移步骤:1)打开命令提示符,从C:\\ Program Files \\ Microsoft SQL Server \\ 130 \\ DTS \\ Binn运行SSISUpgrade.exe(注意,路径可能会因所使用的SSDT版本而异)

2) In the SSIS upgrade tool specify the path to VS 2008 solution and follow all the wizard steps up to finish. 2)在SSIS升级工具中,指定VS 2008解决方案的路径,并按照所有向导步骤进行操作以完成操作。

3) Open the upgraded solution with VS 2016, remove the project from it(perhaps it didn't loaded correctly) 3)使用VS 2016打开升级的解决方案,从其中删除项目(可能是未正确加载的项目)

4) Create the new project of type Business Intelligence - Integration Services Project 4)创建类型为Business Intelligence的新项目-Integration Services项目

5) Right click on the project -- add existing item, and then add dtsx package, config file for, all Powershell scripts and all other stuff than is used by this dtsx package 5)右键单击项目-添加现有项目,然后添加dtsx包,配置文件,所有Powershell脚本以及此dtsx包使用的所有其他内容

Keep mind, that VS 2016 will create a new folder for the project inside the solution folder, and place dtsx files, and all the stuff you've added in step 5. And all of it should be kept in this separate folder, otherwise solution won't work. 请记住,VS 2016将为解决方案文件夹中的项目创建一个新文件夹,并将dtsx文件以及您在步骤5中添加的所有内容放入其中。所有这些都应保存在该单独的文件夹中,否则请解决将无法正常工作。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM