• The code uses LIKE to compare the string, so just construct your string accordingly.

    For example, you could use 'ls-' as the search string. Or, if you want a closer match, then:

    ls-app[0-9]

    or something similar.

    I'll add code to see the actual part(s) of the text that match if you want.

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.