Detecting table locks taking too long


 

hi,

 

my current client has application running on sql server 2000. have plans upgrade sql 2005, not yet.

sometimes during normal operation (sales reps using app) tables locked long period of time. time we notice there problem, lock released and we miss chance identify source of problem.

 

is there way keep eye on database's activity , generate kind of alarm if lock on table takes long released?

 

i've been considering creating c# application monitor table locks. recommend me start?

 

thanks in advance.

hello,

 

i found these 2  links

http://msdn.microsoft.com/en-us/library/aa213025(sql.80).aspx

http://msdn.microsoft.com/en-us/library/aa260422(sql.80).aspx

 

i never used sp_lock i'm unable more efficiently.

 

in case, if want more explanations how use sp_lock in vc#, try available ( problem have given msde , sql server 2000 instant when sql server 2005 available )

which version of vc# have you ( 2003,2005,2008 ) ?

i prefer 2005 or 2008 ( express edition free both versions )

 

have estimation of lock duration ? ( fear under 10 seconds, difficult identify cause of locks )

 

don't hesitate ask more if links incomplete answers.

 

have nice day

 



SQL Server  >  SQL Server SMO/DMO



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........