dbTalk Databases Forums  

How to use bpc to transfer data

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


Discuss How to use bpc to transfer data in the microsoft.public.sqlserver.dts forum.



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

Default How to use bpc to transfer data - 02-16-2004 , 10:26 AM






How to use bpc to transfer data between databases on SQL
server?
Thnaks.

-Tom

Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: How to use bpc to transfer data - 02-16-2004 , 12:14 PM






You don't use BCP to transfer data. It is strictly a means to export or
import data. See BCP in BooksOnLine for more details.

--

Andrew J. Kelly
SQL Server MVP


"Tom Torain" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
How to use bpc to transfer data between databases on SQL
server?
Thnaks.

-Tom



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

Default Re: How to use bpc to transfer data - 02-17-2004 , 04:38 AM



Hi,

1. BCP OUT the data to a test file from ServerA
2. BCP IN The data to table from Text file to ServerB.

Sample format

BCP dbname..tablename OUT
c:\data\tablename.txt -Sserver -Uuser -Ppassword -c -t ","

BCP dbname..tablename IN
c:\data\tablename.txt -Sserver -Uuser -Ppassword -c -t ","

Please remove the Indexes in tables in ServerB , so as BCP IN will be much
faster. AFter the load you can recreate the indexes.
Use -b option (batch size ) in BCP incase the data volume is huge.

Thanks
Hari
MCDBA


"Tom Torain" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
How to use bpc to transfer data between databases on SQL
server?
Thnaks.

-Tom



Reply With Quote
  #4  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: How to use bpc to transfer data - 02-17-2004 , 09:31 AM



Be sure to use native SQL Server format since it is much faster. There is a
switch for that.

"Hari" <hari_prasad_k (AT) hotmail (DOT) com> wrote

Quote:
Hi,

1. BCP OUT the data to a test file from ServerA
2. BCP IN The data to table from Text file to ServerB.

Sample format

BCP dbname..tablename OUT
c:\data\tablename.txt -Sserver -Uuser -Ppassword -c -t ","

BCP dbname..tablename IN
c:\data\tablename.txt -Sserver -Uuser -Ppassword -c -t ","

Please remove the Indexes in tables in ServerB , so as BCP IN will be much
faster. AFter the load you can recreate the indexes.
Use -b option (batch size ) in BCP incase the data volume is huge.

Thanks
Hari
MCDBA


"Tom Torain" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:10fda01c3f4a9$a67f0b20$a001280a (AT) phx (DOT) gbl...
How to use bpc to transfer data between databases on SQL
server?
Thnaks.

-Tom





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.