read a column from a charindex in sql server code example Example: locate sql server SELECT CHARINDEX('b','ab') //returns 2