当前位置:网站首页>sql server强行断开连接
sql server强行断开连接
2022-07-25 14:59: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 恩,以上就是强行关闭数据库连接了,要使用master数据库
其中 'Tmsdb-Test'就是要断开连接的数据库
边栏推荐
- Content type corresponding to office file
- Writing standard of physical quantities and unit symbols
- "Ask every day" how locksupport realizes thread waiting and wakeup
- 43 box model
- Awk from entry to earth (24) extract the IP of the instruction network card
- Jmeter的随机数函数怎么用
- "How to use" observer mode
- awk从入门到入土(24)提取指令网卡的ip
- LeetCode-198-打家劫舍
- 二维数组赋初值你会几种方法?
猜你喜欢
![[Nacos] what does nacosclient do during service registration](/img/76/3c2e8f9ba19e36d9581f34fda65923.png)
[Nacos] what does nacosclient do during service registration

The concept and operation rules of calculus of variations

"How to use" agent mode

LeetCode-198-打家劫舍

easygui使用的语法总结

Syntax summary of easygui

GameFramework制作游戏(二)制作UI界面

45padding不会撑开盒子的情况

32 use of chrome debugging tools

As methods for viewing and excluding dependencies
随机推荐
牛客多校 E G J L
I2C设备驱动程序的层次结构
Syntax summary of easygui
Awk from getting started to digging in (20) awk parsing command line parameters
awk从入门到入土(21)awk脚本调试
Yes, UDP protocol can also be used to request DNS server
MySQL 45讲 | 06 全局锁和表锁 :给表加个字段怎么有这么多阻碍?
Gson and fastjson
Filters get the data in data; Filters use data in data
PS making and loading GIF pictures tutorial
43 box model
As methods for viewing and excluding dependencies
44 新浪导航 ,小米边栏 练习
32 use of chrome debugging tools
[C topic] the penultimate node in the Niuke linked list
云安全技术发展综述
[thread knowledge points] - spin lock
Realsense ROS installation configuration introduction and problem solving
35 quick format code
Add the jar package under lib directory to the project in idea