Page 1 of 1

Varchar(max) SQL Server

Posted: Wed May 29, 2019 2:12 am
by dstager
Trying to write source column Varchar(max) to target Varchar(max) in SQL Server. There is error stating mismatch column length/size with truncation of data...

I have tried writing into SQL using LongVarchar (setting array sixe 1) but the error persists. Some incoming rows exceed the 8000 character length, so it's preferred we leave the character length to 'blank'.

Thanks in advance.

Posted: Wed May 29, 2019 9:09 pm
by UCDI
its been a while but if I remember this right, sql server wanted nvarchar not long varchar for long strings. try that?

Posted: Wed May 29, 2019 9:37 pm
by dstager
Yes - tried that...actually, that would further restrict the allowable size...

Posted: Mon Jun 10, 2019 5:45 pm
by yugee
Try: Set the jobs corresponding column type to LONGVARCHAR to a length of zero along with the Array size property to a value of 1.

Posted: Thu Jul 18, 2019 10:39 am
by dstager
After the field is loaded into a Varchar max column...the data seems to be truncated (missing) - no more runtime error...but the data is missing...

Posted: Mon Jul 22, 2019 7:09 pm
by ray.wurlod
See my posts elsewhere about MAX_FETCH_BUFF.