Chinese characters cannot be entered in SQL Server database tables

Source: Internet
Author: User

In the process of program development, sometimes you need to directly input data testing programs in the database.

If you enter Chinese characters directly in a table in the Microsoft SQL Server database, you may not be able to enter Chinese characters,

This seems to be a small BUG. It has been tested several times, and there are several situations below.

1. if you define a field in the table as INT or BIGINT and place this column in the first column, open the table and enter Chinese Characters in other fields

You cannot enter Chinese characters.

2. If the field in the first column of the table is not an INT or BIGINT column, you can enter Chinese Characters

 

Conclusion: When a database table is opened, the cursor position is in the first column by default. If this column is INT or BIGINT

You cannot enter Chinese Characters in other non-INT or BIGINT columns.

Solution: place the INT or BIGINT column in the non-first column or change the INT or BIGINT column to a non-INT or BIGINT column.

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.