• Great script. I removed the different tests for versions 8 and 9 and got it running in SQL Server 2008 ! Many thanks.