1FreeTDS(February 24, 2006) FreeTDS(February 24, 2006)
2
3
4
6 datacopy - move table data between two servers
7
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
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
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 the command, e.g.
34 CREATE TABLE owner.table (...).
35
36 -b batchsize
37 The number of rows per batch of data copied. Each batch of data
38 is effectively 'committed' to the database. The default is 1000.
39
40 -p packetsize
41 The number of bytes, per network packet, sent to and from the
42 servers. Increased packet size can enhance performance.
43
44 -v Produce verbose output, including diagnostic timings.
45
46 -d Produce freetds TDSDUMP output. (Serious debug only!)
47
48 -S server/username/password/database/table_or_view
49 The connection information for the source server and the loca‐
50 tion/name of the table (or view) to be copied. If not speci‐
51 fied, datacopy will prompt the user for the information.
52
53 -D server/username/password/database/table
54 The connection information for the destination server and the
55 location/name of the target table. If not specified, datacopy
56 will prompt the user for the information.
57
59 freebcp(1), defncopy(1), bsqldb(1), tsql(1), FreeTDS User Guide.
60
62 datacopy first appeared in FreeTDS 0.64.
63
65 The datacopy utility was written by Bill Thompson (thomp‐
66 bil@exchange.uk.ml.com).
67
68
69
70FreeTDS Utilities 0.64RC1 FreeTDS(February 24, 2006)