从代理服务器在目标服务器上发布DACPAC [英] Publishing a DACPAC on target server from the agent server

查看:96
本文介绍了从代理服务器在目标服务器上发布DACPAC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在代理服务器上使用SqlPackage.exe将DACPAC部署到目标计算机? 

Is there a way to deploy a DACPAC to the target machine using SqlPackage.exe on the agent server? 

干杯,Metaphore

Cheers, Metaphore

推荐答案

您好Metaphore,

Hi Metaphore,

感谢您发布此处。

您是否希望在Vnext 版本期间部署DACPAC处理?如果是这样,我建议你可以使用以下扩展中的RunDACPAC任务:

Did you want to deploy the DACPAC during the Vnext build process? If so, I suggest that you could use the RunDACPAC task in the following extension:

https://marketplace.visualstudio.com/items?itemName=andrewlackenby.sql-toolkit

此任务将针对您的数据库部署指定的DACPAC包文件。或者您可以创建自己的PowerShell脚本来运行部署,然后使用Run Powershell脚本在构建期间运行脚本。

This task will deploy a specified DACPAC package file against your database. Or you could create your own powershell script to run the deploy, then use the Run Powershell script to run the script during the build.

最佳问候

Limitxiao Gao

Limitxiao Gao


这篇关于从代理服务器在目标服务器上发布DACPAC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆