dbTalk Databases Forums  

DTS Newbie- exporting

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


Discuss DTS Newbie- exporting in the microsoft.public.sqlserver.dts forum.



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

Default DTS Newbie- exporting - 12-23-2003 , 02:44 PM






My company just got bought and I need to start exporting
data daily from our SQL 2000 server to a comma delimitted
text file. Is the following scenerio possible:

*Export header infomration for one order (such as order,
date, ship to)

*then add a carriage return to leave a blank space.

*Export the detail information pertaining to the report
(such as order line information)

*then add two carriage returns leaving 2 blank spaces.

I know nothing about custom exports. All I have ever
done are exports through the wizard. Can DTS handle
this? Is this a stupid way of doing this. The company
only wants 1 file.

When reading the exported data into there system will it
work? I think we should have 2 text files but that's not
what the boss wants. Please advise!

Thanks

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

Default Re: DTS Newbie- exporting - 12-23-2003 , 11:58 PM






You are going to have to do custom handling of the export and import as the
file will be an invalid format for the text file provider.

You can export to multiple files and use COPY to merge them. When you want
to read them back in you can import into working tables and then join them
back up that way.



--
--

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

"brian" <bshannon (AT) lbrspec (DOT) com> wrote

Quote:
My company just got bought and I need to start exporting
data daily from our SQL 2000 server to a comma delimitted
text file. Is the following scenerio possible:

*Export header infomration for one order (such as order,
date, ship to)

*then add a carriage return to leave a blank space.

*Export the detail information pertaining to the report
(such as order line information)

*then add two carriage returns leaving 2 blank spaces.

I know nothing about custom exports. All I have ever
done are exports through the wizard. Can DTS handle
this? Is this a stupid way of doing this. The company
only wants 1 file.

When reading the exported data into there system will it
work? I think we should have 2 text files but that's not
what the boss wants. Please advise!

Thanks



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.