• Excellent script. Works properly in SQL 2005 as well. Cheers mate.