May 9, 2009 at 1:29 pm
I have an SSIS project that works fine on files smaller than 8k.
When i use a file larger than 8k, it fails due to a truncation error.
I have tracked the issue to the 'set column width' which is limited to 8000.
How do i change the 'set column width' field to varchar(max) and get around my issue ?
BTW some of my input files are 35k.
Thanks
May 11, 2009 at 6:23 am
I have searched the internet for a solution, but no luck.
This seems very easy, but for some reason poorly documented.
Has anyone else experienced this ? What is a workaround solution ?
Thanks
May 11, 2009 at 6:46 am
Since varchar(max) replaces text data type, does changing the input column type to text work?
May 11, 2009 at 6:58 am
behind the scenes, the length is set to -1 for the column in syscolumns. can you set the width to -1 instead of 8000?
Lowell
May 11, 2009 at 9:29 am
Changing to -1 did not work, but changing to text format worked!
Many thanks for your assistance
February 15, 2019 at 5:59 am
You can put 8000 since it is the value that cannot be reached by VARCHAR(MAX)
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy