开发者

dropDestinationDatabase option on Web Deployment Commandline Tool

开发者 https://www.devze.com 2023-01-18 20:24 出处:网络
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

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",dropDestina开发者_StackOverflow社区tionDatabase=true

This is my command line.

Why is it ignoring the dropDestinationDatabase option?

The admin user has permissions for drop.

Regards, Rob


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

0

精彩评论

暂无评论...
验证码 换一张
取 消