SQLSERVER查数据库连接数语句

select * from master.dbo.sysprocesses where dbid=DB_ID('OES_SRM')

说明:OES_SRM表示数据库名称

猜你喜欢

转载自blog.51cto.com/4085457/2406062