SQL server text truncated when importing excel data solution

Source: Internet
Author: User
Tags truncated

The text of a cell in an excel file is very long. When importing SQL Server 2008, the following error occurs:

-Executing (error)
Message
Error 0xc020901c: data flow Task 1: output "Excel Source output" (9) on the output column "F6" (30) error. The returned column status is: "The text is truncated, or one or more characters do not match in the target code page .".

Solution: import the Excel data to Access, and then import the access data to SQL server.

Solution 2: directly modify the field type

The attribute value of the "error field" column is nvarchar (255) and the size is 255 characters.

When SQL was used to process the imported excel data, in order to obtain the attributes of each field, sql2005 will calculate the largest of the eight rows based on the first eight rows of the field) the data type and size to determine the attribute value of this field.

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.