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

javascript - Slick Slider width recalculation -

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

angular2 services - Angular 2 RC 4 Http post not firing -