It's better to do the comparison at the database level. The SQL will return a DataSet of all entries that match.