I am new to using SQL Server and have ben trying to import some data from a flat file in text format, which has a very large amount of text in one of the fields. When I try to import using the wizard it reports some data is truncated.
Here are the errors:
Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Verse" 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 "Source - Verses2_txt.Outputs[Flat File Source Output].Columns[Verse]" failed because truncation occurred, and the truncation row disposition on "Source - Verses2_txt.Outputs[Flat File Source Output].Columns[Verse]"
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 "D:\Downloads\Verses2.txt" on data row 2.
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - Verses2_txt 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)
The fields in the table are:
VID (Int)
Event_Type (Int)
Sub_Type (Int)
Verse nVarchar(Max)
Am I right in specifying thatall the source data are strings, as it comes from a text file?
Any ideas on how I can get this to import without an error?