通过sqlserver查看和注销远程登录用户

--查看用户

xp_cmdshell 'query user'

--注销用户

xp_cmdshell 'logoff id'

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