dbTalk Databases Forums  

Exporting data to a delimited text file

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Exporting data to a delimited text file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
peterDavey
 
Posts: n/a

Default Exporting data to a delimited text file - 09-30-2003 , 08:54 PM






G'day all,
I'm new to DTS and just need a pointer in the right direction. I want to
set-up a package that will extract data records from a remote database,
write the data to a comma separated text file, then ftp the file to my Linux
server. I've set-up an Execute SQL task with the SQL statement to extract
the data into a global variable (what should the data type be for this
variable?) but don't know how to get the data into a file. I've worked out
that I'll need to write a script to do the FTP as the DTS FTP task doesn't
allow me to specify a destination other than a local or network drive (which
seems a pretty strange limitation).

I've got a book on DTS but it's pretty slow going. Any help will be greatly
appreciated.

cheers
peterDavey
Melbourne



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Exporting data to a delimited text file - 10-01-2003 , 01:03 AM






OK

1. Why are you reading into a Global Variable ? Why can you not just write
to a text file in a datapump task ? or even use BCP ?
2. The DTS FTP task is pull only not push. Can you use FTP.exe to do the
FTP part.



--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"peterDavey" <peter.davey (AT) austin (DOT) org.au> wrote

Quote:
G'day all,
I'm new to DTS and just need a pointer in the right direction. I want to
set-up a package that will extract data records from a remote database,
write the data to a comma separated text file, then ftp the file to my
Linux
server. I've set-up an Execute SQL task with the SQL statement to extract
the data into a global variable (what should the data type be for this
variable?) but don't know how to get the data into a file. I've worked
out
that I'll need to write a script to do the FTP as the DTS FTP task doesn't
allow me to specify a destination other than a local or network drive
(which
seems a pretty strange limitation).

I've got a book on DTS but it's pretty slow going. Any help will be
greatly
appreciated.

cheers
peterDavey
Melbourne





Reply With Quote
  #3  
Old   
peterDavey
 
Posts: n/a

Default Re: Exporting data to a delimited text file - 10-01-2003 , 02:39 AM



Allan,
These are good questions. The answer is I don't have a clue (yet) as I'm new
to DTS and there's a lot to learn. I was just just looking for a bit of
start and your suggestion to use the DataPump is it. I was a bit confused
by the Transform Data Task because it's looking for a destination connection
as well as a source. I've gone back to the book and think I'll be able tol
work it out. I was planning on using ftp.exe to move the file.

Thanks for your help.

cheers
peterDavey

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
OK

1. Why are you reading into a Global Variable ? Why can you not just
write
to a text file in a datapump task ? or even use BCP ?
2. The DTS FTP task is pull only not push. Can you use FTP.exe to do the
FTP part.



--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"peterDavey" <peter.davey (AT) austin (DOT) org.au> wrote in message
news:uxz7577hDHA.2120 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
G'day all,
I'm new to DTS and just need a pointer in the right direction. I want
to
set-up a package that will extract data records from a remote database,
write the data to a comma separated text file, then ftp the file to my
Linux
server. I've set-up an Execute SQL task with the SQL statement to
extract
the data into a global variable (what should the data type be for this
variable?) but don't know how to get the data into a file. I've worked
out
that I'll need to write a script to do the FTP as the DTS FTP task
doesn't
allow me to specify a destination other than a local or network drive
(which
seems a pretty strange limitation).

I've got a book on DTS but it's pretty slow going. Any help will be
greatly
appreciated.

cheers
peterDavey
Melbourne







Reply With Quote
  #4  
Old   
John Bell
 
Posts: n/a

Default Re: Exporting data to a delimited text file - 10-01-2003 , 03:15 AM



Hi

Anyone who is new to DTS should spend some time browsing Allan and Darren's
site
www.SQLDTS.com, there is just about everything you will ever need to know
there.

John
"peterDavey" <peter.davey (AT) austin (DOT) org.au> wrote

Quote:
Allan,
These are good questions. The answer is I don't have a clue (yet) as I'm
new
to DTS and there's a lot to learn. I was just just looking for a bit of
start and your suggestion to use the DataPump is it. I was a bit confused
by the Transform Data Task because it's looking for a destination
connection
as well as a source. I've gone back to the book and think I'll be able
tol
work it out. I was planning on using ftp.exe to move the file.

Thanks for your help.

cheers
peterDavey

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:OUos3G#hDHA.1820 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
OK

1. Why are you reading into a Global Variable ? Why can you not just
write
to a text file in a datapump task ? or even use BCP ?
2. The DTS FTP task is pull only not push. Can you use FTP.exe to do
the
FTP part.



--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"peterDavey" <peter.davey (AT) austin (DOT) org.au> wrote in message
news:uxz7577hDHA.2120 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
G'day all,
I'm new to DTS and just need a pointer in the right direction. I want
to
set-up a package that will extract data records from a remote
database,
write the data to a comma separated text file, then ftp the file to my
Linux
server. I've set-up an Execute SQL task with the SQL statement to
extract
the data into a global variable (what should the data type be for this
variable?) but don't know how to get the data into a file. I've
worked
out
that I'll need to write a script to do the FTP as the DTS FTP task
doesn't
allow me to specify a destination other than a local or network drive
(which
seems a pretty strange limitation).

I've got a book on DTS but it's pretty slow going. Any help will be
greatly
appreciated.

cheers
peterDavey
Melbourne









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.