how to find out character from string sql code example Example: locate sql server SELECT CHARINDEX('b','ab') //returns 2