Sql Server Function Find Substring Cpp Brakes