dbTalk Databases Forums  

how do you bulk copy into text file?

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


Discuss how do you bulk copy into text file? in the microsoft.public.sqlserver.dts forum.



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

Default how do you bulk copy into text file? - 04-14-2006 , 01:10 PM






I am looking through Books Online, and I cannot find a clear example on how
to Bulk Copy from SQL Server into a text file (for archiving old data).

The only line I could find states: "Bulk copying supports the following bulk
copy transfers: ...., From a SQL Server table or view into a data file, such
as a text file or tab-delimited file."

I tried to do this in a DTS package, but all I could see was the Bulk Insert
task, and that appears to only lets me copy from a text file into a SQL
table. What can I look to accomplish the opposite (From SQL Table into Text
file)?


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

Default Re: how do you bulk copy into text file? - 04-14-2006 , 01:20 PM






You can;

1. Use the Datapump task
2. Use bcp in an ExecuteProcess Task
3. Use this

Bulk Export Task
(http://www.sqldts.com/default.aspx?237)


HTH

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"br" <br (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am looking through Books Online, and I cannot find a clear example on how
to Bulk Copy from SQL Server into a text file (for archiving old data).

The only line I could find states: "Bulk copying supports the following
bulk
copy transfers: ...., From a SQL Server table or view into a data file,
such
as a text file or tab-delimited file."

I tried to do this in a DTS package, but all I could see was the Bulk
Insert
task, and that appears to only lets me copy from a text file into a SQL
table. What can I look to accomplish the opposite (From SQL Table into
Text
file)?




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

Default Re: how do you bulk copy into text file? - 04-14-2006 , 01:41 PM



Thanks very much for your insight. I can see the ExecuteProcess Task and
found the bcp.exe file in the Binn folder. I will try to create my solution
through this, and ask my DBA about the other options (the Bulk Export task
looks like a sleek solution).

Have a great day.

"Allan Mitchell" wrote:

Quote:
You can;

1. Use the Datapump task
2. Use bcp in an ExecuteProcess Task
3. Use this

Bulk Export Task
(http://www.sqldts.com/default.aspx?237)


HTH

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"br" <br (AT) discussions (DOT) microsoft.com> wrote in message
news:37AF700C-057A-4732-AE5E-112E3132858A (AT) microsoft (DOT) com...
I am looking through Books Online, and I cannot find a clear example on how
to Bulk Copy from SQL Server into a text file (for archiving old data).

The only line I could find states: "Bulk copying supports the following
bulk
copy transfers: ...., From a SQL Server table or view into a data file,
such
as a text file or tab-delimited file."

I tried to do this in a DTS package, but all I could see was the Bulk
Insert
task, and that appears to only lets me copy from a text file into a SQL
table. What can I look to accomplish the opposite (From SQL Table into
Text
file)?





Reply With Quote
  #4  
Old   
Tomer Shoval
 
Posts: n/a

Default Re: how do you bulk copy into text file? - 04-16-2006 , 03:50 AM



NP.
just keep in mind that i've found that the bulk export task has issues
with collations other then the deafult English one.


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.