February 13, 2004 at 6:36 am
I have a table with a single column defined as varchar(1000). I need to export that table to flat file. I set up a DTS package with a SQL Source and a Text File destination. I used Copy Column to copy the source column to the destination file. All the records were truncated at 256 chars.
I changed the Transformation from Copy Column to an ActiveX script and tried again. Same result.
Just to confirm I ran "Select len(userdata) as length from users" and all the values in the column are longer than 256 (i.e. 589).
Is this a limitation of DTS? Is there a way around it? If not, is there another method (i.e. a Stored Procedure) I can use to create this flat file? (btw we aren't allowed to use xp_cmdshell just in case you were going to suggest a script with that in it).
February 13, 2004 at 7:16 am
I answered my own question. I found the following while searching on Google:
http://support.microsoft.com/?kbid=247527
I used the following from that article and it fixed the problem:
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply