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.