Question : SQL using InStr


I wrote this query to find the second word in a string. It works great in access, but in SQL 2000 query analyzer, I get an error "
'InStr' is not a recognized function name. Can anyone tell me what I should use instead?
Thanks experts for all of your help!

SELECT Left(Mid([tableName].[fieldName],InStr([tableName].[fieldName]," ")+1),InStr(Mid([tableName].[fieldName],InStr([tableName].[fieldName]," ")+1)," ")-1) AS SubTitle
FROM Recipes;

Answer : SQL using InStr

Random Solutions  
 
programming4us programming4us