• Submitted and available for your perusal here.

    http://www.sqlservercentral.com/articles/T-SQL/107611/