Re: BCP Utility

From: Hari (hari_prasad_k_at_hotmail.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 18:20:34 +0530

Hi,

Why do you need Linked server for BCP? It is not required to have linked
server to do a BCP OUT and IN.

Steps to perform BCP OUT / IN between 2 servers

1. Bcp out the data from source server specifying User name, password,
Source server name ....

2. BCP IN the data from text file to destination server

1) Is there the way to bcp an entire database instead of only a table?

 No, You have to write your own script on sysobjects fir type ='U' (U - user
tables)

2) I have to bcp a large table(s) (500 MB of data) to linked server, is
there any problem to do this during normal operations (lock and so on...)
for my users?

No need to Linked server for BCP OUT and IN.

Thanks
Hari
MCDBA

"Fabrizio Maccarrone" <fabrizio (at) 7mates (punto) com> wrote in message
news:#Q0aax5JEHA.2576@TK2MSFTNGP12.phx.gbl...
> I have to bcp some data from a server to another.
>
> I add themselves as "linked servers".
>
> Now I want to ask you
>
> 1) Is there the way to bcp an entire database instead of only a table?
> 2) I have to bcp a large table(s) (500 MB of data) to linked server, is
> there any problem to do this during normal operations (lock and so on...)
> for my users?
>
>
> Any help much appreciated.
>
> Regards.
>
> --
> Fabrizio Maccarrone
> --
> YAMSSQLU
> (Yet Another MSSQL User)
>
>
>



Relevant Pages

  • RE: Transferring data to web host
    ... do linked servers use SSL including exchanging data via bcp? ... able to link to the webhost's server. ... Move the tables/data from your main database to a staging database. ...
    (microsoft.public.sqlserver.security)
  • Re: BCP and security
    ... As far as SQL Server is concerned, BCP and the other utilities are ... Database permissions are determined by the login ... > installation CD doesn't give you the option for bcp only ...
    (microsoft.public.sqlserver.security)
  • Re: copying tables from one server to another
    ... BCP OUT the data, copy the file to destination and in destination use ... > My client runs my app against sql server 2000. ... I maintain a copy of the database on my system, but the tables are, ...
    (microsoft.public.sqlserver.server)
  • Re: Whats the bcp (SQL Server) substitute in Oracle??
    ... secured UNIX server using the bcp utility of SQL Server. ... But now this database will be migrated to Oracle 10g. ... Flat File and Out File. ...
    (comp.databases.oracle.misc)
  • Get files in different folder using sql
    ... but they are store in different directory on ... the server. ... I want open those files and insert it into the database ... bcp, ...
    (comp.databases.ms-sqlserver)