日期:2014-05-17 浏览次数:20754 次
SELECT * FROM master.dbo.sysprocesses WHERE DB_NAME(dbid) = 'test' SELECT * FROM master.dbo.sysprocesses WHERE dbid IN (SELECT dbid FROM master.dbo.sysdatabases WHERE NAME='test')