Perfect Stefan, thanks!
>>Oh gosh, it couldn't be that simple could it? I'll test it - thanks Stefan!
>
>Actually I was not sure when I read your description, so I'm happy you did not laugh at me :-)
>FWIW, if you want only those rows where the second part after the semicolon exactly equals "ABC" (ignoring whitespace), then I believe something like this might work (untested)
>
>Select * From dbo.myTable
> Where
> Replace(
> SubString(
> myField, CharIndex(';',myField), Len(myField)
> ),
> ' ',''
> ) = ';ABC';
>
>
>
>Regards
>-Stefan
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"