当前位置:网站首页>SQL Server forcibly disconnects
SQL Server forcibly disconnects
2022-07-25 15:04:00 【Kimizhou_ blog】
declare @i INT
declare cur cursor for select spid from sysprocesses where db_name(dbid)= 'Tmsdb-Test'
open cur
fetch next from cur into @i
while @@fetch_status=0
begin exec('kill '[email protected])
fetch next from cur into @i
end
close cur
deallocate cur Okay , The above is to forcibly close the database connection , To use master database
among 'Tmsdb-Test' The database to be disconnected
边栏推荐
- oracle_12505错误解决方法
- [MySQL series] - how much do you know about the index
- SPI传输出现数据与时钟不匹配延后问题分析与解决
- 06、类神经网络
- 基于AMD EPYC服务器的EDA芯片设计解决方案
- 转载----如何阅读代码?
- How to realize a correct double check locking
- The solution to the problem that the progress bar of ros2 installation connext RMW is stuck at 13%
- 云安全技术发展综述
- MySQL sort
猜你喜欢
![Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]](/img/c9/8f8f0934111f7ae8f8abd656d92f12.png)
Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]

Splice a field of the list set into a single string

Share a department design method that avoids recursion

基于AMD EPYC服务器的EDA芯片设计解决方案

Heyuan City launched fire safety themed milk tea to boost fire prevention and control in summer

As methods for viewing and excluding dependencies

IP地址分类,判断一个网段是子网超网

冈萨雷斯 数字图像处理 第一章绪论

The solution to the problem that the progress bar of ros2 installation connext RMW is stuck at 13%

43 box model
随机推荐
基于AMD EPYC服务器的EDA芯片设计解决方案
L1 and L2 regularization
"How to use" decorator mode
Gonzalez Digital Image Processing Chapter 1 Introduction
Log4j2 basic configuration
图片的懒加载
easygui使用的语法总结
Awk from getting started to digging in (21) awk script debugging
51 single chip microcomputer learning notes (1)
06、类神经网络
How to use the random number function of JMeter
[C题目]力扣88. 合并两个有序数组
I2C设备驱动程序的层次结构
安装EntityFramework方法
[C题目]力扣876. 链表的中间结点
Reprint ---- how to read the code?
IP地址分类,判断一个网段是子网超网
Install entityframework method
Login of MySQL [database system]
关于RDBMS和非RDBMS【数据库系统】