SQL Server Developer Center > SQL Server Forums > SQL Server Data Access > Using collation for international languag other than English
Ask a questionAsk a question
 

AnswerUsing collation for international languag other than English

  • Saturday, November 07, 2009 10:16 PMManrippo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    The SQL 2005 server has "SQL_Latin1_General_CP1_CI_AS" as default collation to have english characters.
    I am trying to input "Korean" language into the database, and then now I see funny "???" character after I insert a data.

    What is my option to use Korean character on my database?
    Should I create whole new database?

    Thanks.

Answers

  • Sunday, November 08, 2009 6:32 AMRaj Kasi - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can change the database collation, see this link : http://msdn.microsoft.com/en-us/library/ms174269.aspx . You can also change collation at column level : http://msdn.microsoft.com/en-us/library/ms190920%28SQL.90%29.aspx

    Hope this helps
    This posting is provided "AS IS" with no warranties, and confers no rights
  • Tuesday, November 24, 2009 10:52 PMManrippo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    I found the answer to use Unicode languge.

    1.  Keep the current collation

    2. change the datatype of the column or table by nchar or nvachar for unicode from char or varchar

    3. When you update or insert, Put N(upper case) from the ther data.

     (ex) Update Mytable
                  set TheColumn = N'abcd'
              where ThisCoulm = 1001

    Then the database takes the unicode language.

    • Marked As Answer byManrippo Tuesday, November 24, 2009 10:52 PM
    •  

All Replies

  • Sunday, November 08, 2009 6:32 AMRaj Kasi - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can change the database collation, see this link : http://msdn.microsoft.com/en-us/library/ms174269.aspx . You can also change collation at column level : http://msdn.microsoft.com/en-us/library/ms190920%28SQL.90%29.aspx

    Hope this helps
    This posting is provided "AS IS" with no warranties, and confers no rights
  • Tuesday, November 24, 2009 5:28 PMManrippo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I did changed the collation of the table but it still shows me "???" when I insert a data as Korean.

    Server : SQL 2005 standard

    1. This is what I did.

    ALTER TABLE EVA_MAIN_QUESTION ALTER COLUMN CATEGORY_NM
                varchar(100)COLLATE Korean_Wansung_CI_AS

    2. Should I add something when Insert or update is exucuted?

    3. What is the unicode collation?

    Thanks.
  • Tuesday, November 24, 2009 10:52 PMManrippo Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    I found the answer to use Unicode languge.

    1.  Keep the current collation

    2. change the datatype of the column or table by nchar or nvachar for unicode from char or varchar

    3. When you update or insert, Put N(upper case) from the ther data.

     (ex) Update Mytable
                  set TheColumn = N'abcd'
              where ThisCoulm = 1001

    Then the database takes the unicode language.

    • Marked As Answer byManrippo Tuesday, November 24, 2009 10:52 PM
    •