@Evan: The assertion that SQL Server is case insensitive is actually not entirely true. Sensitivity depends on sorting. The server has sorting (selected during installation), the database has sorting (selected during database creation), and text columns have sorting (selected during column creation). If no mapping is specified for creating the database, the server will be configured by default. If sorting is not specified when creating a column, it gets the same value as the database.
But in most cases, people (fortunately) install their server using case-insensitive matching, such as Latin1_General_CI_AS. CI = case insensitive, AS = accent sensitive.
On SQL Server, if I needed to get both small f and capital F, I would go for:
where columnA NOT LIKE 'F%' and columnA NOT LIKE 'f%'
PS: I add this as an โanswerโ because I donโt see the possibility of commenting on the existing answer - I'm still new to this ... If anyone has an explanation why I do not understand this option, do not hesitate to contact me.
Regards, Valentino
source share