dropDestinationDatabase option on Web Deployment C

2019-08-08 02:59发布

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条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-08-08 03:45

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

查看更多
登录 后发表回答