SQL Server garbled Problem resolution

Source: Internet
Author: User

* If you are creating a database of your own then you should choose the collation from the beginning:chinese_prc_ci_as

1. Change the collation method:

Right click Gen built database, properties → options → sort rule selected: chinese_prc_ci_as

If you select chinese_prc_ci_as The data is still garbled when it is found, or when data is inserted,

That's because the default collation when creating a database is sql_latin1_general_cp1_ci_as Reason for span style= "color: #000000",

You can change the type of the field at this time, reinsert the data or resolve garbled problem.

But the best way is to choose when you create the database :chinese_prc_ci_as collation

2. The second method is the most direct of the most brain-free

If a database is found to be garbled, the collation alsoChinese_prc_ci_as similar to , most of the data is normal and individual data garbled,

Then the data can be directly update back, the situation is just right for me to meet the problem today.

┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°

chinese_prc_ci_asThe parameters are explained as follows:
First half: Refers to the Unicode character set, chinese_prc_ the pointer to the mainland simplified Unicode collation.
The second half of the collation is the suffix meaning:
_bin binary Ordering
_ci (CS) is case sensitive, CI is not differentiated, CS is distinguished
_ai (AS) are accent-sensitive, AI not differentiated, as differentiated
_ki (KS) Whether the kana type is differentiated, KI does not differentiate, KS differentiates
_WI (WS) Whether the width of the WI is differentiated, WS-Differentiated
Case Sensitivity: Select this option if you want the comparison to treat uppercase and lowercase letters as unequal.
differentiate Accent: Select this option if you want to treat accented and non-accented letters as unequal. If you select this option,
Comparisons also treat letters with different accents as unequal.
< Span style= "color: #454545; font-family: "pingfang sc","microsoft Yahei", Simhei, Arial, SimSun "> Kana-sensitive: If you want to compare katakana and hiragana Japanese syllables as unequal , select this option.
< Span style= "color: #454545; font-family: "pingfang sc","microsoft Yahei", Simhei, Arial, SimSun "> width: If you want the comparison to treat half-width characters and full-width characters as unequal, Please select this option.

┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°┄┅┄┅┄┅┄┅┄°

If there are deficiencies, please correct me!

SQL Server garbled Problem resolution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.