在数据库服务器端或是客户端可以看到应用程序打开的数据库连接,怎样将该连接停止或者删除呢?

解决方案 »

  1.   

    KILL spidspid可以通过sp_who2得到
      
    *****************************************************************************
    欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 最新版本:20070212http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html
      

  2.   

    可不可以用Sql Server 自带的工具来查出并停止呢。 我没有必要在程序来实现。用工具能察看,并且能购断开与数据库服务器的连接就可以了。
      

  3.   

    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.