ohemaa
asked on
Db Blocking/Locking
I need a script that can send an email to Ohemaa@yahoo.com when
there is
1. a lock on the database Customer
2. The head of the blocking chain
3. the query that the spid that is blocking is running....
there is
1. a lock on the database Customer
2. The head of the blocking chain
3. the query that the spid that is blocking is running....
ASKER
I have seen all these links. just not sure how to put it all in a nice simple script..
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Does not alert me. I am looking for some form of alert so that we ca resolve the issue before users start calling
1. a lock occurs on database
2. The head of the blocking chain or who is causing the locking/blocking
3. the query that the spid that is blocking is running....
1. a lock occurs on database
2. The head of the blocking chain or who is causing the locking/blocking
3. the query that the spid that is blocking is running....
I'm sure this will answer your questions...
http://articles.techrepublic.com.com/5100-9592_11-6088055.html
alittle more you.
http://msdn2.microsoft.com/en-us/library/ms187749.aspx as well as doing a google search for more information on lock types, etc.