How to export data in table to text file in DTS package

How to export data in table to text file in DTS package

Post by Joel Aske » Fri, 22 Mar 2002 07:09:55


From the nature of your question, it would be good for you to spend some
time in the DTS section of BooksOnline, or with a good SQL Server book.
One that I like is Rob Vieira's "Professional SQL Server 2000 Programming".
It has a decent section or two on DTS programming.

The short answer is that you set up two connection objects.  The Source
connection should be to your SQL Server database.  The Destination
connection would map to either an Excel or Text file.  Then you set up a
DataPump transformation task between the two.  Of course, you'll have to
parameterize your connections dynamically if this gets deployed to multiple

This really is too big an issue to address in detail in this format.  Trust
me that there are good books and online documentation that will help you
through the process.

Realize also that you don't need DTS to accomplish an export.  Check out the
OPENQUERY function in Books Online.  Using a linked server and this call,
you can accomplish the same thing if it's a simple scenario.

Quote:> Hi All,

> I have a question how I can export data in table to text
> file or excel file in DTS package. So, I can schedule a
> job to run this package automatically according to our
> schedule.

> Thanks in advance!

> hy


1. Creating a DTS Package: Data from table transform it into a text file

Hi there! I'm pretty new in SQL Svr7.0. I'm using DTS and would like to
transform data stored in a table to a text file.

So far I've got is:
[1]-a connection
[2]-a data driven query task
[3]-test file destination

The map is something like this [1] ---> [2] ---> [3]

I ctrl clicked each of these icons and then clicked the Transform Data icon
on the toolbar (for the workflow).

When I run the package it executes (I get the final external text file) but
I receive the following response:

Has some one been through this, do any one of you know what's going on or
have a better idea in accomplishing this?

thanks for your time
Ing. Felix Melendez
Managua, Nicaragua

2. Tree View in Cognos Powerplay

3. DTS package that exports data to file...but not the way i want...HELP

4. programming restore database with "share deny" poblem

5. Script to export tables data into text file based on table name

6. Update sql

7. How to export two sets of data to same text file in DTS

8. Upsized table dropped, re-upsize doesn't work

9. Export data from cube to a text file with DTS

10. Automatically export DTS Packages to .dts files

11. DTS Export data to text file in native format

12. DTS package files on empty text file

13. Export Of All table data in a text File