dbTalk Databases Forums  

BCP a sectional bulk of data from Table1 (in db1) to Table2 (in db2)

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


Discuss BCP a sectional bulk of data from Table1 (in db1) to Table2 (in db2) in the microsoft.public.sqlserver.dts forum.



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

Default BCP a sectional bulk of data from Table1 (in db1) to Table2 (in db2) - 05-04-2004 , 01:26 PM






Is there a way to BCP a sectional bulk of data (like using
process date) fr tbl1 (in db1) and copy/append into tbl2
(in db2) within the same server?

I am trying to increase speed of my copy process here so
that I don't have to copy one record at a time. Any
suggestions will be very much appreciated.

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: BCP a sectional bulk of data from Table1 (in db1) to Table2 (in db2) - 05-04-2004 , 04:50 PM






In message <84ae01c43205$54f627e0$a301280a (AT) phx (DOT) gbl>, Steven Wong
<anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
Is there a way to BCP a sectional bulk of data (like using
process date) fr tbl1 (in db1) and copy/append into tbl2
(in db2) within the same server?

I am trying to increase speed of my copy process here so
that I don't have to copy one record at a time. Any
suggestions will be very much appreciated.
BCP is for importing or exporting data via text files only, so no and it
certainly does not have the copy or append functionality.

Using DTS you can use the either the DataPump task or Data Driven Query
Task to transfer data between SQL, but if this all in the same server
why not use SQL? This doesn't have to be row by row, as you can run
multiple statements for insert vs update, but to provide full insert or
update checks DTS will be.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #3  
Old   
Steven Wong
 
Posts: n/a

Default Re: BCP a sectional bulk of data from Table1 (in db1) to Table2 (in db2) - 05-05-2004 , 10:10 AM



Allan:

First of, thanks for your response.

Yes, the 2 dbase are in the same server. However, when I
use SQL statement (Select/Insert) in the "Execute SQL
Task" of the DTS to copy the data I needed, it will be
copying one record at a time, right?

If I understand correctly, you are saying that in DTS, you
can copy "chunks of data" at a time? How would you do
that? Please provide some guidance.


Quote:
-----Original Message-----
In message <84ae01c43205$54f627e0$a301280a (AT) phx (DOT) gbl>,
Steven Wong
anonymous (AT) discussions (DOT) microsoft.com> writes
Is there a way to BCP a sectional bulk of data (like
using
process date) fr tbl1 (in db1) and copy/append into tbl2
(in db2) within the same server?

I am trying to increase speed of my copy process here so
that I don't have to copy one record at a time. Any
suggestions will be very much appreciated.

BCP is for importing or exporting data via text files
only, so no and it
certainly does not have the copy or append functionality.

Using DTS you can use the either the DataPump task or
Data Driven Query
Task to transfer data between SQL, but if this all in the
same server
why not use SQL? This doesn't have to be row by row, as
you can run
multiple statements for insert vs update, but to provide
full insert or
update checks DTS will be.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server
professionals
http://www.sqlpass.org

.


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

Default Re: BCP a sectional bulk of data from Table1 (in db1) to Table2 (in db2) - 05-05-2004 , 10:25 AM



No:

It will insert in batches using the DataPump task. By Default this is set
to insert "All Or Nothing". You can set it up for each row being a seperate
batch if you really want.

The ExecuteSQL task is nothing more than QA in DTS. You can use it to
execute your statements against SQL Server just like you would in QA.

--
--

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


"Steven Wong" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Allan:

First of, thanks for your response.

Yes, the 2 dbase are in the same server. However, when I
use SQL statement (Select/Insert) in the "Execute SQL
Task" of the DTS to copy the data I needed, it will be
copying one record at a time, right?

If I understand correctly, you are saying that in DTS, you
can copy "chunks of data" at a time? How would you do
that? Please provide some guidance.


-----Original Message-----
In message <84ae01c43205$54f627e0$a301280a (AT) phx (DOT) gbl>,
Steven Wong
anonymous (AT) discussions (DOT) microsoft.com> writes
Is there a way to BCP a sectional bulk of data (like
using
process date) fr tbl1 (in db1) and copy/append into tbl2
(in db2) within the same server?

I am trying to increase speed of my copy process here so
that I don't have to copy one record at a time. Any
suggestions will be very much appreciated.

BCP is for importing or exporting data via text files
only, so no and it
certainly does not have the copy or append functionality.

Using DTS you can use the either the DataPump task or
Data Driven Query
Task to transfer data between SQL, but if this all in the
same server
why not use SQL? This doesn't have to be row by row, as
you can run
multiple statements for insert vs update, but to provide
full insert or
update checks DTS will be.


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server
professionals
http://www.sqlpass.org

.




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.