简体   繁体   English

将SSIS包部署到SQL Server 2016

[英]Deploying SSIS Package to SQL Server 2016

I have an SSIS project in VS: 我在VS中有一个SSIS项目:

Microsoft Visual Studio Professional 2015 Version 14.0.25431.01 Update 3 Microsoft .NET Framework Version 4.6.01590 SQL Server Data Tools 14.0.61116.0 Microsoft SQL Server Data Tools SQL Server Integration Services Microsoft Visual Studio Professional 2015版本14.0.25431.01更新3 Microsoft .NET Framework版本4.6.01590 SQL Server数据工具14.0.61116.0 Microsoft SQL Server数据工具SQL Server集成服务
Microsoft SQL Server Integration Services Designer Version 13.0.1601.5 Microsoft SQL Server集成服务设计器版本13.0.1601.5

Project > Properties > Configuration Properties > Deployment Target Version > TargetServerVersion = SQL Server 2016 项目>属性>配置属性>部署目标版本> TargetServerVersion = SQL Server 2016

I deployed and validated successfully on two SQL server instances, but cannot on a third. 我在两个SQL Server实例上成功部署和验证,但在第三个SQL Server实例上不能成功。

The chief difference I see in the three instances is this: 我在三种情况下看到的主要区别是:

First (success) 第一(成功)

Microsoft SQL Server 2016 (RTM-GDR) (KB4019088) - 13.0.1742.0 (X64) Jul 5 2017 23:41:17 Copyright (c) Microsoft Corporation Developer Edition (64-bit) on Windows Server 2012 R2 Datacenter 6.3 (Build 9600: ) (Hypervisor) Microsoft SQL Server 2016(RTM-GDR)(KB4019088)-13.0.1742.0(X64)2017年7月5日23:41:17版权所有(c)Windows Server 2012 R2 Datacenter 6.3(Build 9600)上的Microsoft Corporation Developer Edition(64位) :)(管理程序)

Second (success) 第二(成功)

Microsoft SQL Server 2016 (RTM-GDR) (KB4019088) - 13.0.1742.0 (X64) Jul 5 2017 23:41:17 Copyright (c) Microsoft Corporation Developer Edition (64-bit) on Windows Server 2012 Datacenter 6.2 (Build 9200: ) (Hypervisor) Microsoft SQL Server 2016(RTM-GDR)(KB4019088)-13.0.1742.0(X64)2017年7月5日23:41:17版权所有(c)Windows Server 2012 Datacenter 6.2(内部版本9200)上的Microsoft Corporation Developer Edition(64位): )(管理程序)

Third (failed) 第三(失败)

Microsoft SQL Server 2016 (SP1-CU5) (KB4040714) - 13.0.4451.0 (X64) Sep 5 2017 16:12:34 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2012 R2 Datacenter 6.3 (Build 9600: ) (Hypervisor) Microsoft SQL Server 2016(SP1-CU5)(KB4040714)-13.0.4451.0(X64)2017年9月5日16:32:34版权所有(c)Microsoft Corporation企业版:Windows Server 2012 R2上的基于核心的许可(64位)数据中心6.3(内部版本9600 :)(系统管理程序)

I have been unable to track down fixes for the errors via Google, and they seem to be the same as when I target SQL Server 2014. I can post those as an edit if necessary, but my suspicion is the Sql Server installation (perhaps an issue specific to the Enterprise edition or something otherwise missing from that install) and not my package based on the above. 我一直无法通过Google跟踪这些错误的修复程序,这些错误似乎与我定位SQL Server 2014时的错误相同。如有必要,我可以将这些错误发布为编辑内容,但我怀疑是Sql Server安装(也许是特定于企业版的问题或该安装中缺少的其他问题),而不是基于上述内容的我的软件包。

Here are the first and likely most relevant errors: 这是第一个,可能是最相关的错误: 在此处输入图片说明

I found that this error goes away if you deploy from within Visual Studio instead of the wizard that is output by the build. 我发现如果从Visual Studio而不是内部版本输出的向导中进行部署,此错误就会消失。 However, I don't think you can connect to remote SQL Server instances when deploying from Visual Studio (I think that a Windows login is required). 但是,我认为从Visual Studio进行部署时无法连接到远程SQL Server实例(我认为需要Windows登录名)。

So the solution was to install SSDT (Visual Studio 2015) on the production machine and deploy locally. 因此,解决方案是在生产计算机上安装SSDT(Visual Studio 2015)并在本地部署。 This is obviously not great because you then have to move the SSDT project to the target machine every time you want to deploy (i use Git for this). 这显然不是很好,因为您每次要部署时都必须将SSDT项目移到目标计算机上(我为此使用Git)。

I'm sure Microsoft will come up with a fix for this eventually... Although at the moment I'm still waiting for them to release SSDT for Visual Studio 2017. 我敢肯定,微软最终会为此提供解决方案。尽管此刻,我仍在等待他们发​​布Visual Studio 2017的SSDT。

=== EDIT October 2017 ===编辑2017年10月

SSDT is now available in Visual Studio 2017. However, I found that I still had to deploy from a locally running Visual Studio (but I can't remember why since having tried this a couple months ago from VS2017) SSDT现在在Visual Studio 2017中可用。但是,我发现我仍然必须从本地运行的Visual Studio进行部署(但是我不记得为什么,因为几个月前从VS2017尝试过此操作)

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

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