• NOTE: This function works with SQL2008R2 SP1 and upwards. So if you're still having an RTM version, it's time to update! :hehe:

    Wilfred
    The best things in life are the simple things