标签:性能测试
select * from sysprocesses where dbid in (select dbid from sysdatabases where name='MyDatabase'); MyDatabase 是数据库名称
sqlserver数据库
原文地址:http://blog.51cto.com/13693838/2119437