I have two tables, and they are using different collations. It is not allowed to concatenate columns from tables with different collations, for example the following SQL is not allowed,
select table1column1 + table2column2 from ...
My question is, how to change the collation of a table without destroying the data of the table?
thanks in advance,
George
You can change columns collation on the fly if you need to.
E.g.
select table1column1 collate database default + table2column2 collate database default from ...
"Database default" could be whatever the collation you are wanting to use.
You can alter the collation of a column permanently with
ALTER TABLE ... ALTER COLUMN Table1Column1
varchar(50) COLLATE Latin1_General_CI_AS NOT NULL
GO