Yes it is possible, but first you need to know what type of COLLATION your SQL SERVER is configured for.
To do this check with the following Select:
select databasepropertyex('databasename', 'collation') sqlcollation;
If you have a result like:
sql_latin1_general_cp1_ci_as
It means that Bank is not case sensitive and differs accents;
You can:
- Change the default SQL Server collation to a new
- Change the database grouping, but do not advise, as it is not easy, you will probably have to migrate from an old database to a new one
-
Create columns using a non-standard collation Change collation directly (same syntax is used to create columns with different colums)
select coluna1 collate sql_latin1_general_cp1_ci_as as coluna1 from tabela1
I think it's the best way forward, unless your database is really big and very, very confusing, is to create a new database with the correct collation.
There are a few ways to do this but I prefer my old database script and use this script to create a new one with the right collation, then migrate all the information by selecting the old database and inserting into the new one using the clause grouping for the new grouping in the varchar columns (avoiding the invalid grouping error).
The rationale is simple: changing a single column grouping for string comparison is very costly.