Assistant d'importation SQL Server échoue avec un message incompréhensible

Je veux juste importer des deux colonnes à partir d'un fichier plat dans une nouvelle table. J'ai mis une colonne "Code", à varchar(50)et une autre colonne, 'Description', pour être nvarchar(max).

L'importation échoue avec le message suivant:

- Executing (Error)
Messages
Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Description" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
 (SQL Server Import and Export Wizard)

Error 0xc020902a: Data Flow Task 1: The "output column "Description" (14)" failed because truncation occurred, and the truncation row disposition on "output column "Description" (14)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
 (SQL Server Import and Export Wizard)

Error 0xc0202092: Data Flow Task 1: An error occurred while processing file "C:\Users\rinaldo.tempo\Desktop\ICD10_Edition4_CodesAndTitlesAndMetadata_GB_20120401.txt" on data row 3.
 (SQL Server Import and Export Wizard)

Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on component "Source - ICD10_Edition4_CodesAndTitlesAndMetadata_GB_20120401_txt" (1) returned error code 0xC0202092.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
 (SQL Server Import and Export Wizard)

Le message d'erreur me donne à penser que les données sont tronquées, comme on l'a placé dans la colonne Description, qui est de type nvarchar(max)! Ayant eyeballed les données d'entrée, je dirais que les descriptions ne sont jamais plus de 2 ou 300 caractères, donc c'est hors de question.

Quelqu'un peut-il suggérer quel est le problème ici?

source d'informationauteur David | 2013-01-08