sql中使用cmd命令注销登录用户

远程桌面无法远程,提示超过用户数

连接mssql后执行

--注销登录用户 无法登陆远程桌面时用
exec xp_cmdshell 'quser'

Exec xp_cmdshell 'logoff 1' 

原文地址:https://www.cnblogs.com/cwfsoft/p/1872714.html