Web部署命令行工具上的dropDestinationDatabase选项 [英] dropDestinationDatabase option on Web Deployment Commandline Tool

查看:99
本文介绍了Web部署命令行工具上的dropDestinationDatabase选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ho

我正在尝试使用msdeploy命令行工具将数据库从开发人员复制到测试中.

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

这是我的命令行.

为什么忽略dropDestinationDatabase选项?

Why is it ignoring the dropDestinationDatabase option?

管理员用户具有放置权限.

The admin user has permissions for drop.

关于, 罗布

推荐答案

我认为您只需要将参数附加到-dest:dbFullSql开关

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

这篇关于Web部署命令行工具上的dropDestinationDatabase选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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