I get an XML file with a field that contains over 255 characters. I use a XSD file to import the data in to a SQL table. The XSD file uses the data type string, but then the field is truncated to 255. How can I avoid this?
I use a SSIS package. Just now, I saw at the advanced editor, that the field has a length of 255. I have changed it and now it works fine. But why is it set to 255 when the field contains more than 255 characters?
It's the SSIS default for varchar datatype. (The "Wizards" don't ask many questions, they just make a lot of assumptions.) Either fix the SSIS package, or create your result table ahead of time with column sizes that are closer to what you want.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.