Build and Deploy SSIS packages using VSTS

試著忘記壹切 提交于 2019-12-11 09:59:00

问题


I created the simple SSIS project in VS2015 with SQL Server 2012 as a targeted server, it will worked in local machine successfully without any issues. After that I have created the build definition and release definition by following this link.

For this project build will be success. But release definition failed with this “##[error]Task_InternalError Exception calling ".ctor" with "1" argument(s): Failed to connect to server DNS name label.eastus.cloudapp.azure.com,1433" error message in Deploy SSIS step like this below figure. But here I used the virtual machine with SQL server2012 for hosting the SSIS package.

Can you please tell me how to resolve the above issue as soon as possible and also tell me is there any alternative way to deploy the SSIS project using VSTS?


回答1:


Based on the source code, the connection uses windows authentication (Integrated Security=SSPI), but the Hosted agent uses service account, so it can’t connect to the server.

You can refer to the source code to build the PowerShell script to deploy SSIS project and the project name is the name of the SSIS project. (Using SQL Server authentication: User ID=XXX;Password=XXX)

Another article with the code about deploying SSIS: Deployment Automation for SQL Server Integration Services (SSIS)



来源:https://stackoverflow.com/questions/45978672/build-and-deploy-ssis-packages-using-vsts

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