• Search for "OMG" In J.M. article:

    http://www.sqlservercentral.com/articles/T-SQL/68467/

    It does explain the problem in details and gives good example.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]