select * from master.dbo.sysprocesses where dbid=DB_ID('OES_SRM')
Description: OES_SRM represents the database name