简体   繁体   中英

SQL Collation issue between SQL 2000 and SQL 2008

I am querying a sql 2000 database on a sql 2008 database (linked server) and in the linked server i have a data with accents in. However when i query the 2008 database the accents appear correctly and as expected. But when i run the query on sql 2000 database the data is not showing correctly.

SQL 2000 Collation - SQL_Latin1_General_CP1_CI_AS

SQL 2008 Collation - SQL_Latin1_General_CP850_BIN2

I have attempted to add "COLLATE" to my queries however it is just not showing the data correctly. Any ideas?

Thank you.

It turned out the issue was that the data types for the columns were varchar when they needed to be nvarchar. By dropping the table and recreating it with the correct data type this resolved my issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM