当前位置:网站首页>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'就是要断开连接的数据库
边栏推荐
- Yes, UDP protocol can also be used to request DNS server
- PS making and loading GIF pictures tutorial
- 32 use of chrome debugging tools
- Gameframework making games (II) making UI interface
- 006 operator introduction
- Educational Codeforces Round 132 (Rated for Div. 2) C,D+AC自动机
- 44 新浪导航 ,小米边栏 练习
- Several methods of spark parameter configuration
- [C题目]力扣876. 链表的中间结点
- spark参数调整调优
猜你喜欢
随机推荐
44 Sina navigation, Xiaomi sidebar exercise
How many ways can you assign initial values to a two-dimensional array?
PHP implements non blocking (concurrent) request mode through native curl
Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
H5页面input输入框弹起数字键盘,需要支持小数点
Spark parameter adjustment and tuning
27 classification of selectors
Several methods of spark parameter configuration
Ssh server rejected password
[C题目]力扣876. 链表的中间结点
LeetCode_ String_ Medium_ 151. Reverse the words in the string
Copy files / folders through Robocopy
Niuke multi school E G J L
The solution to the problem that the progress bar of ros2 installation connext RMW is stuck at 13%
[C topic] the penultimate node in the Niuke linked list
Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud
51 single chip microcomputer learning notes (1)
SSH服务器拒绝了密码
About RDBMS and non RDBMS [database system]
41 picture background synthesis - colorful navigation map









