• This article should help http://www.sqlservercentral.com/articles/T-SQL/67898/.