As a point of intellectual curiosity, when I run this against my sandbox database (SQL 2008 R2) I get an error that the database needs to be in single user mode.
Thanks again for everything. I start every morning with the SSC QoTD, and it has taught me an awful lot.
Andre Ranieri