I'm racking my brains how to insert Polish characters into varchar column with SQL_Latin1_General_CP1_CI_AS collation. I've tried using collate Polish_CI_AS with insert statement, convert function, N'my_text' but to no avail. Is there any kind of workaround to get it inserted without changing the collation of a column (which requires recreating the table)?
drop table if exists #MyTable
create table #MyTable (MyColumn varchar(255) collate SQL_Latin1_General_CP1_CI_AS)
insert into #MyTable
(MyColumn)
select 'śmieci'
insert into #MyTable
(MyColumn)
select 'śmieci' collate Polish_CI_AS
insert into #MyTable
(MyColumn)
select N'śmieci'
insert into #MyTable
(MyColumn)
select convert(nvarchar(255),'śmieci')