SQLSERVER check database connections statements

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

Description: OES_SRM represents the database name

Guess you like

Origin blog.51cto.com/4085457/2406062