有没有办法在不关闭架构比较的情况下断开 Visual Studio 2008 架构比较与数据库的连接?

发布于 2024-09-12 19:50:23 字数 140 浏览 0 评论 0原文

假设我想(使用 Visual Studio)在两个数据库之间运行架构比较,从备份还原其中一个数据库,然后再次运行架构比较。架构比较维护与数据库的连接,并且 SQL Server 不会让我在不删除所有连接的情况下运行还原。有没有办法可以强制模式比较断开连接而不关闭它?

Let's say I want to (using Visual Studio) run a schema comparison between two databases, restore one of them from a backup, and run the schema comparison again. The schema comparison maintains a connection to the database, and SQL Server won't let me run the restore without removing all connections. Is there a way I can force the schema comparison to disconnect without closing it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南七夏 2024-09-19 19:50:23

您可以:

  • 关闭数据库上的所有活动(MSSMS 右键单击​​服务器 > 活动监视器 > 关闭进程)
  • 删除数据库(选中关闭所有连接),然后恢复数据库
  • 更改与其他数据库的连接
  • 保存架构比较 >关闭它>恢复>开放模式比较

You could:

  • Close all activities on the database (MSSMS right click on server > Activity monitor > close processes)
  • Delete the database (check close all connections) then restore the database
  • Change the connection to other database
  • Save the schema compare > close it > restore > open schema compare
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文