Here are two helpful procedures to help with sqlserver database work. The code for both of these are based on the system stored procedures sys.sp_lock that comes built in the master database. build both of these in your master database if you want to...