dropDestinationDatabase option on Web Deployment Commandline Tool

时光总嘲笑我的痴心妄想 提交于 2019-12-24 14:23:01

问题


Ho,

I'm trying to get msdeploy commandline tool to copy databases from dev to test.

It seems to work except that I want to drop the databases on test and then recreate them

-verb:sync -source:dbFullSql="Data Source=DEVSERVER;Initial Catalog=XXX_Application;Integrated Security=true",dropDestinationDatabase=true -dest:dbFullSql="Data Source=111.111.111.111;Initial Catalog=XXX_Application;uid=admin;pwd=xxx;Integrated Security=false",dropDestinationDatabase=true

This is my command line.

Why is it ignoring the dropDestinationDatabase option?

The admin user has permissions for drop.

Regards, Rob


回答1:


I think you need to append the parameter to only the -dest:dbFullSql switch

http://technet.microsoft.com/en-us/library/dd569036(WS.10).aspx



来源:https://stackoverflow.com/questions/3854670/dropdestinationdatabase-option-on-web-deployment-commandline-tool

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