可不可以用Sql Server 自带的工具来查出并停止呢。 我没有必要在程序来实现。用工具能察看,并且能购断开与数据库服务器的连接就可以了。
How to terminate a process (Enterprise Manager) To terminate a process Expand a server group, and then expand a server. Expand Management, and then expand Current Activity. Click Process Info. The current server activity is displayed in the details pane.In the details pane, right-click a Process ID, and then click Kill Process. Confirm that the process has terminated.
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 最新版本:20070212http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
To terminate a process Expand a server group, and then expand a server.
Expand Management, and then expand Current Activity.
Click Process Info.
The current server activity is displayed in the details pane.In the details pane, right-click a Process ID, and then click Kill Process.
Confirm that the process has terminated.