• As usual, google will return some helpful info as long as you know the "magic spell".

    in this case, "patindex escape" would have provided a number of helpful links. 😉

    I agree regarding BOL though. The description provided for PATINDEX is kinda weak regarding the handling of meta-characters.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]