Perfect solution to the problem of inserting Chinese characters into question marks in SQL server2005 _mssql

Source: Internet
Author: User
About the solution of inserting Chinese characters into question marks in SQL server2005
1. Right-click the database you built, click "Properties", select "Options" and click. Set the collation to: Chinese_prc_ci_as (select the Drop-down list box to set), and then OK.

2. Set the data type of your Chinese character field to nvarchar or ntext in the table, it is best to delete the data in the table before setting. (Do not use varchar or text type, because they will only continue to make your data garbled).

3. After setting up, shutdown the server, and then restart, it will be effective.

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.