sql - Check if database is used by another C# Application -


is there way check if sql server database (.mdf file) opened/used c# application?

i installing c# application on multiple computers. these apps using single/same database. want determine if 1 of apps using or doing query database. possible?

use system stored procedure sp_who2.

once result filter database name. can application name "programname" column.

run below sql statement in sql server management studio,

exec sp_who2 

Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -