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 - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -