justnew, what i gave was for oracle as you didn't give a database initialy. i doubt it will work for MSSQL
Forum Rules