For ex:if String contains string 'X' then it shouldsatisfy certain condition.
if(contains(var,'xyz'))
begin
-----
end
This querry given me error.
How should i check string?
Plz help me out.....
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Posted May 31, 2011, 12:11 AM EDT
declare @string1 as varchar(10)
set @string1 ='xyz1'
if(Charindex(@string1,'xyz1',0) > 0 )
begin
print 'here'
end