DTS from table to text delimited file

Posted on 2004-04-27
Last Modified: 2012-06-27
I am trying to DTS from a sql server 2000 table to a | delimited text file.

I can get it to work fine with all the columns, but if I try and exclude some of the columns it comes up with the following error:

A DTSTransformCopy must specify no columns (signifying a 1-to-1 mapping of all columns) or the same number of source and desgination columns

However - the destination columns section is empty.

anyone got any ideas?

Question by:jon100
  • 5
  • 3

Expert Comment

ID: 10930984
Double Click the DataPump Task. In the Transformation tab: Delete all the transformations. Then recreate the transformations. You can just click New/ActiveX Transaformation. Then you have a dialog with 3 tabs. Click Source, select the fields you want to include. Click Destination, ensure that there are the same number of fields. Click Properties, then you should have a default ActiveX script for you. You can edit it if you want. Test it. And Save.


Author Comment

ID: 10931414

The Destination Columns tab doesn't contain any fields.

Expert Comment

ID: 10931593
Double Click the Destination Connection in your DTS Package and make sure that it is still valid.
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud


Author Comment

ID: 10931602
its still fine - my destination is a text file remember...

Author Comment

ID: 10931889
Its strange - I can go in and select the source table fine

It then lets me 'define columns' - which I do (removing 4 from the end of the table) and go onto transformations - but none of the fields I created are in destination - whats going on?

Also if i go back in and try and edit the destination tab / Define Columns - SQL Server fully crashes.

Im on sp3 sql2k developer edition...

Accepted Solution

Frostbyte_Zero earned 65 total points
ID: 10932063
Try rebuidling the DTS using the Impor/Export Wizard. Use a SQL statement instead of a Table as your Source.

Author Comment

ID: 10932282
Great thanks - good work around idea.

I wonder if Microsoft are aware of this problem (seems2b a prob2me)

Expert Comment

ID: 11262733
I have the same problem with SQl2k/sp3, on one of our servers. I want to do this as part of a DTS package, and I can use the wizard to create this part and then add to it; if I try to edit that transformation within the GUI, it forces me to redo all the mappings and then claims it has no destination column names to use.

Did you ever get it to work?

Author Comment

ID: 11262770
hi geoffbtbc - no never found a solution. What I had to do is use the wizard work around, which got round the issue for me.

Hopefully it's something they'll fix in the next sp / version.

Good luck

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
LTrim & Double Space Correction 5 40
SQL Query 2 31
Are triggers slow? 7 11
VB.NET Application Installation with sqlserver 8 29
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question