The CurrentCultureIgnoreCase operative worked fine on the SQL Server instance. It however isn't working on the DB2 instance I have of the same application.
I have tried the following ones:
Working (although concerned about performance hit):
s.POSTCODE.Trim().ToLower() == q.Trim().ToLower();
Not Working:
s.POSTCODE.Trim().Equals(q, StringComparison.OrdinalIgnoreCase);
Not Working:
s.POSTCODE.Trim().Equals(q, StringComparison.CurrentCultureIgnoreCase);
Any suggestions?
Thanks.