I have a flat file which is ','
separated, the problem is my final destination table has fixed length for columns and those cannot be changed and the data from text file is also same length but during importing the data the default length is larger than the length it actually needs which is causing truncation error. Is there any way that I can load data without this error from a float file.
For example Text1.txt
file has 4 columns
A,B,C,D
1,44,777,1000
2,55,888,1100
3,66,999,1200
My Final table design is like
A nvarchar(1)
B nvarchar(2)
C nvarchar(3)
D nvarchar(4)
Text file is defaulting the length to large text which is causing the issue of truncation.