Question

I have a notepad file

While uploading data from import and export wizard , I face below error And also while creation of the table i have edited the table structure to make every field to be ntext data type still i am getting error.

enter image description here

Was it helpful?

Solution

From errors you might have 2 issues:

  1. Probably you have some characters not fitting into code page
  2. Field is too short and you have too long data

Probably 2nd error is causing the other. Unfortunally weak error reporting is one of side effects using SSIS.

And little advise, don't use NTEXT rather NVARCHAR instead. It easier to work with NVARCHAR: nvarchar(max) vs NText

OTHER TIPS

Make your table to use nvarchar(max) instead.

Instead of using import/export wizard, write a SSIS package and add a data conversion transformation in the data flow task between the source and destination. Use unicode string in the conversion transformation.

-- Sumit

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top