When the field imported into the database in Excel is greater than 255, the field in the first row is extended by more than 255.

Source: Internet
Author: User
When the field imported into the database in Excel is greater than 255, the field in the first row is extended by more than 255.

Because the Excel driver will pre-sample some data to determine the Data Type of the field during the import operation, the judgment on the sample data result is different from the Data Type of all data: 1. If the data type of a column field is different, the import result is null, for example, numeric value and text. If the sample data only contains text, the value record is null after being imported; 2. The length of a text field in a column is different, causing the field length to be intercepted: The driver determines the text length of the sample data. If the length does not exceed 255, it is defined as 255 nvarchar, therefore, if a record with a length greater than 255 exists in the data outside sampling, the length will be truncated to 255, and information will be lost.

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.