首 页
关于美图
网站案例
网站建设
微网站开发
解决方案
建站资讯
400-028-6601
网站建设资讯
为你提供网站建设行业资讯、网站优化知识、主机域名邮箱、网站开发常见问题等。
当前位置:
首页
-
全部资讯
全 部
巴中网站建设
巴中企业网站设计
巴中网站定制开发
巴中网站制作
巴中网站营销推广
巴中小程序开发
查看用户连接到特定数据库
平时运维中,要发现用户连接到哪个数据库,使用dmv 视图达不到需要的 关键信息:
比如主机名,进程号等。
使用如下sql,可以查到主机名和应用程序和本地进程号,如果确认该连接是非法的,可以进行kill。
use master;
go
select * from sysprocesses
where dbid in (select dbid from sysdatabases where name='数据库名称');
or --使用db_id 函数
select * from sysprocesses where dbid=db_id('isa_test')
名称栏目:查看用户连接到特定数据库
转载源于:
http://hnjierui.cn/article/peseoc.html
其他资讯
jquery字数 jquery字体
html5显示屏 html display none
定位类型html5 定位类型lbs和gps和wifi定位
css样式让文字靠下 css怎么把文字向下移
css怎样设置字体样式 css怎样设置字体样式为透明
028-86922220
244261566
回到顶部