SQL 2012 English garbled

Source: Internet
Author: User

MS SQL when inserting Chinese characters, often encounter some of the characters into a garbled question mark, so in the installation of the database or when creating a table need to pay attention to a few points:

1, the preservation of the Chinese character field to use nvarchar, NCHAR, ntext, etc., insert the time to use n ' Kanji '
2, when installing the database, select the Chinese_prc_ci_as collation, if the other collation can be modified by the following:

Database name Right-click Properties, Options, collation, select as Chinese_prc_ci_as

Here's my database server collation: As you can see, it's chinese_hong_kong_stroke_90_ci_as.

U

Because my database server collation is: chinese_hong_kong_stroke_90_ci_as, so my server will appear garbled characters of the situation, as shown in:

1,select ' Ceramic tile tile '

From the above can be seen garbled


2,select N ' Ceramic tile tile '

As can be seen from the above, the normal display. In other words , use n ' kanji ' when inserting

SQL 2012 English garbled

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.