Some Scottish and Irish surnames use an apostrophe after an M or O, for example O'Brien. It seems like SqlUtil.Encode function replacing that apostrophe with '' first and then it is replaced again when in Command. So finaly the find parameter looks like @Param0 = N'O''''Brien' instead of @Param0 = N'O''Brien' what results wrong find results.