Hi Naga, Using the script from the first link, I had to move the use [company database] before the variable declaration in order to make it work. Using SQL Server 2008 R8 Cheers
↧