Can anyone tell me why I'm getting an infinite loop on this?
@Keywords is passed in and you can assume that it equals 'boy', 'dog'
Please advise? What have I don't wrong? I'm following the example that I found on google.
Many Thanks,
- VB Rookie
Code:
IF CHARINDEX (',' , @Keywords) > 0
BEGIN
WHILE CHARINDEX (',' , @Keywords) > 0
BEGIN
-- sql statements here
END
END
@Keywords is passed in and you can assume that it equals 'boy', 'dog'
Please advise? What have I don't wrong? I'm following the example that I found on google.
Many Thanks,
- VB Rookie