1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
-- Example of using CharIndex. This example -- returns 17, the starting position of 'fox' DECLARE @s varchar(500), @Pos int SET @s = 'The quick brown fox jumped over the lazy dog.' SET @Pos = CHARINDEX('fox', @s) SELECT @Pos