Sql Server Function Find Substring In C