• Have a look at Jeff's article:

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