Click here to Skip to main content
15,913,090 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have selected distinct collation
by this script

SELECT distinct c.collation_name
FROM sys.columns as c
inner join sys.tables as t
on c.object_id=t.object_id
where type_desc='USER_TABLE


The output is only
NULL and 
SQL_Latin1_General_CP1_CI_AS


But on Saving data it shows error of
Collation
SQL_Latin1_General_CP1_CI_AS
and
Latin1_General_CI_AS


What I have tried:

Only shows NULL and
SQL_Latin1_General_CP1_CI_AS
on sql but on save it shows different collation error.
Posted
Updated 4-Dec-17 19:48pm

1 solution

This is because your are trying to put the data in SQL DB which is having collation "SQL_Latin1_General_CP1_CI_AS" but may be your data is of different try and SQL server detecting the data type as "Latin1_General_CI_AS"

that's where the mismatch is

By the way, can you show me your insert statement?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900