Groups | Blog | Home
all groups > sql server dts > october 2004 >

sql server dts : Export to text



Brandon Lilly
10/6/2004 1:18:44 PM
As part of a much larger DTS package, I am needing to copy a large quantity
of data from an Oracle source to a flat text file. I originally intended to
use the datapump object to do this, but I am not needing to do any
transformations, I simply want to copy the data to a file.
If this were one query, I would just set it up in DTS, but I actually want
to feed the package a file that contains the scripts of the data I wish to
export. Each time the query changes, all the transforms (copy row) need to
be redone, and this seems like a silly amount of work to get this to work -
not to mention that I cannot seem to find documentation on how to do this
anyhow.

Is there another way? Can anybody point me to a website with a solution to
this?

Also, I read somewhere that the datapump tasks truncates text data. While
none of the tables have wide text rows (> 255 characters), they are very
wide with each having as many as 275 columns. Is this going to be an issue?

Thanks,

Brandon

Brandon Lilly
10/6/2004 2:27:57 PM
[quoted text, click to view]

The data extraction is just a small portion of the overall package. See
below...

[quoted text, click to view]

I have a text file that was generated from another process that contains a
SQL query that will be used to extract data from Oracle to a delimited text
file. Essentially, I set the contents of that script as the datapump task's
SQL Source statement. Since the query changes between runs, I have to clear
out all the transformations, and reconfigure them all. In this case, I am
never needing to actually transform anything - I simply want to copy all
columns. I just found something about a "many-to-many transformation", but
can only find directions on how to set it up manually with the DataPump
task, and not through vbscript.

As I said, the datapump is only a small part of the overall package, sitting
somewhere in the middle of the execution path (the results are then
encrypted, packaged up and sent to a remote site, etc)

Thanks,

Brandon

Allan Mitchell
10/6/2004 8:06:47 PM
The problem you describe is documented here

http://support.microsoft.com/?kbid=247527

If you really want to possibly redo everything everytime then using
DataPump task is not for you.

When you say "Feed a file" what do you mean.

You could feed a file that created a view and then dynamically used BCP to
export the data. You could then drop the view



--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


[quoted text, click to view]

Allan Mitchell
10/6/2004 8:51:19 PM
The problem with this for DTS is tht DTS likes Metdata and it does not care
for it changing between executions.

I would still feed this in using the OSQL utility and An ExecuteProcess
task.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


[quoted text, click to view]

AddThis Social Bookmark Button