Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

Currently i am working in data migration from mysql to sql server 2008

i could not get what type of equivalent collation to be given in sql server for

collate utf8_swedish_ci<br />
collate utf8_unicode_ci


which are given in mysql tables.

And also i need help regarding ,how to give characted set in sql server
.

"username" varchar(12) character set utf8 collate utf8_swedish_ci NOT NULL default '',<br />
"house2" varchar(30) collate utf8_unicode_ci NOT NULL,


what is the euivalent sql server code for the line above.

Your help will be greatly appreciated , thanks in advance.
Posted
Updated 5-Apr-11 21:37pm
v2

1 solution

I think the closest collation in SQL Server is Finnish_Swedish_CI_AS. since you had swedish collation and case insensitive in MySql. The SQL Server collation is accent sensitive so if that's not correct use ..._AI

You can use this page http://msdn.microsoft.com/en-us/library/ms188046.aspx[^] to match the collations.


You can define the collation similarly in SQL Server, for more details, see CREATE TABLE[^] and the COLLATE keyword for columns.
 
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