• hi,

    Look into the following link for the function mentioned above

    http://www.sqlservercentral.com/Forums/Topic900359-338-1.aspx#bm900398