Check if a string contains a substring in SQL Server 2005 Stored Procedure

Posted by NLV on Stack Overflow See other posts from Stack Overflow or by NLV
Published on 2010-03-24T07:14:44Z Indexed on 2010/03/24 7:23 UTC
Read the original article Hit count: 301

Hello

I've a string @mainString = 'CATCH ME IF YOU CAN'. I want to check whether the word 'ME' inside @mainString.

So how to check if a string has a substring in sql?

Thank you

Regards NLV

© Stack Overflow or respective owner

Related posts about stored-procedures

Related posts about string-manipulation