The case sensitivity in your SQL database is determined by the collation setting. By default, I think most databases are case-insensitive, so you should check if you really need to explicitly handle case-sensitivity.
In the collation setting SQL_Latin1_General_CP1_CI_AS - CI stands for case insensitive, and AS stands for accent sensitivity.
Unfortunately, Linq-to-Sql ignores the optional String.Compare() parameters, so you cannot explicitly set case sensitivity for comparison. However, it will work with linq for objects.
If you use case-sensitive sorting, you can use something like SqlMethods.Like(field, "string") to use a LIKE query that is case-insensitive - but this does not translate to objects in linq.
andreialecu Mar 05 '10 at 16:21 2010-03-05 16:21
source share