恢复备份时,如何断开所有活动连接? [英] When restoring a backup, how do I disconnect all active connections?

查看:289
本文介绍了恢复备份时,如何断开所有活动连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于活动连接,我的SQL Server 2005无法还原备份.我该如何强迫呢?

My SQL Server 2005 doesn't restore a backup because of active connections. How can I force it?

推荐答案

SQL Server Management Studio 2005

在数据库上单击鼠标右键,然后单击Tasks,然后单击Detach Database,它会弹出一个包含活动连接的对话框.

SQL Server Management Studio 2005

When you right click on a database and click Tasks and then click Detach Database, it brings up a dialog with the active connections.

通过点击消息"下的超链接,您可以杀死活动的连接.

By clicking on the hyperlink under "Messages" you can kill the active connections.

然后您可以取消这些连接而无需分离数据库.

You can then kill those connections without detaching the database.

更多信息此处.

SQL Server Management Studio 2008的界面已更改,以下步骤(通过:

The interface has changed for SQL Server Management studio 2008, here are the steps (via: Tim Leung)

  1. 在对象资源管理器中右键单击服务器,然后选择活动监视器".
  2. 打开后,展开进程"组.
  3. 现在使用下拉菜单按数据库名称过滤结果.
  4. 通过右键单击杀死进程"选项来终止服务器连接.

这篇关于恢复备份时,如何断开所有活动连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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