TSQL code to detect blocking and deadlocks on a given database, Also wrote test code to simulate the deadlocaks. I beleive this will work on any database (MySQL, MS SQLServer)....