SQL Server import table

-1

I tried to upload a table (contains Latin characters) to SQL Server and I got this message. Can someone help me?

  • 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)

sql-server
sql-server-2008
import
ssis
asked on Stack Overflow Jul 9, 2017 by Tijana • edited Jul 9, 2017 by Sloan Thrasher

1 Answer

0

on your data flow task, the field Description is being truncated. you can increase the size of this field. go into your flat files connection mgr and increase the size of the field under the advanced tab. the default here should be 50 chars. make sure your destination table and this value are the same. I would suggest varchar(200) for testing if the max size of Description is not yet known.

answered on Stack Overflow Jul 10, 2017 by Chris McCarty

User contributions licensed under CC BY-SA 3.0