To use the deadlock analysis script, you first need a deadlock to analyze. Creating a deadlock is pretty easy; just follow the instructions and use the code below.

First, create the environment:

Next, open up two query windows in SSMS. In the first window, run this code:

In the second window, run this code. Note that this transaction does not complete.

Return to the first window, and run this code. Normally, this code will be the deadlock victim.

And there you have your very own deadlock.