Exporting to Text file -
12-08-2004
, 03:57 PM
I am attempting to set up a DTS package to export a view to tab-delimited
text, but there seems to be a bug that prevents me from having more that 22
columns involved. I can set up the package just fine if I only have 22
columns in my view, but if I add any more (even a small CHAR(3) field) then
DTS will not generate the field definitions for the text file.
In the package, I set up both connections just fine. When I add the
Transform Data Task, I choose the source view and can preview it just fine.
Then, I click on the Destination and DTS correctly pulls in all the
fieldsfrom the view. But, when I cilck on [Execute] DTS returns to the
destination tab and the field list is blank. If at that point I click on
[Define Columns...] then the entire SQL console crashes.
On the text file connection, I've tried both drive-letter and UNC path with
the same effect (... and paths valid for either my workstation or the server).
I've also tried various combinations of fields to see if the total data
length was the issue, but apparently it's the number of columns. For
example, if "Field22" is CHAR(40) and all is well with DTS, but adding
"Field23" CHAR(3) to the view causes it to fail, I could remove "Field22"
and add "Field23" - still all is okay. But if I then add "Field24" CHAR(1)
then it fails again. The point is, the combined data length is shorter with
23 and 24 (total length is 4) than having Field22 (total length 40) but it
still fails because there are more than 22 columns defined in the second
scenario.
--
-Chris |