1FreeTDS(May 14, 2011)                                    FreeTDS(May 14, 2011)
2
3
4

NAME

6       datacopy - move table data between two servers
7

SYNOPSIS

9       datacopy { -t | -a | -c owner } [-b batchsize] [-p packetsize] [-v] [-d]
10       [-S server/username/password/database/table_or_view]
11       [-D server/username/password/database/table]
12

DESCRIPTION

14       datacopy is a utility distributed with FreeTDS.  datacopy will move ta‐
15       ble data from one server to another without the need  for  intermediate
16       files.  datacopy  is  much  faster  and  more efficient than is freebcp
17       out/in.
18
19       datacopy makes use of the db-lib bcp API built into FreeTDS.  This  API
20       is also available to application developers.
21
22       datacopy  can be used to migrate data between Sybase ASE and SQL Server
23       or vice versa.
24

OPTIONS

26       -t     Truncate target table before loading data.
27
28       -a     Append data to target table.
29
30       -c owner
31              Create the target table with the same schema as the  source  ta‐
32              ble. datacopy will submit a 'create table' command on the target
33              server/database using the specified owner in
34
35              the command, e.g. CREATE TABLE owner.table (...).
36
37       -b batchsize
38              The number of rows per batch of data copied.  Each batch of data
39              is effectively 'committed' to the database. The default is 1000.
40
41       -p packetsize
42              The  number  of  bytes, per network packet, sent to and from the
43              servers. Increased packet size can enhance performance.
44
45       -v     Produce verbose output, including diagnostic timings.
46
47       -d     Produce freetds TDSDUMP output. (Serious debug only!)
48
49       -S server/username/password/database/table_or_view
50              The connection information for the source server and  the  loca‐
51              tion/name  of  the  table (or view) to be copied.  If not speci‐
52              fied, datacopy will prompt the user for the information.
53
54       -D server/username/password/database/table
55              The connection information for the destination  server  and  the
56              location/name  of  the target table.  If not specified, datacopy
57              will prompt the user for the information.
58

SEE ALSO

60       freebcp(1), defncopy(1), bsqldb(1), tsql(1), FreeTDS User Guide.
61

HISTORY

63       datacopy first appeared in FreeTDS 0.64.
64

AUTHORS

66       The  datacopy  utility   was   written   by   Bill   Thompson   (thomp‐
67       bil@exchange.uk.ml.com).
68
69
70
71FreeTDS Utilities                   0.91RC2              FreeTDS(May 14, 2011)
Impressum