1DATACOPY(FreeTDS) FreeTDS Reference Manual DATACOPY(FreeTDS)
2
4 datacopy — move table data between two servers
5
7 datacopy [-vdE] {-t | -a | -c owner} [-b batchsize] [-p packetsize]
8 [-S server/username/password/database/table_or_view]
9 [-D server/username/password/database/table] [-T textsize]
10
12 datacopy is a utility distributed with FreeTDS. datacopy will move table
13 data from one server to another without the need for intermediate files.
14 datacopy is much faster and more efficient than is freebcp out/in.
15
16 datacopy makes use of the db-lib bcp API built into FreeTDS. This API is
17 also available to application developers.
18
19 datacopy can be used to migrate data between Sybase ASE and SQL Server or
20 vice versa.
21
23 -t Truncate target table before loading data.
24
25 -a Append data to target table.
26
27 -c owner
28 Create the target table with the same schema as the source table.
29 datacopy will submit a ‘CREATE TABLE’ command on the target
30 server using the specified owner in the command, e.g. ‘CREATE
31 TABLE owner.table (...).’
32
33 -b batchsize
34 The number of rows per batch of data copied. Each batch of data
35 is effectively 'committed' to the database. The default is 1000.
36
37 -p packetsize
38 The number of bytes, per network packet, sent to and from the
39 servers. Increased packet size can enhance performance.
40
41 -T textsize
42 Specify size of TEXT/IMAGE column from network.
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 specified,
51 datacopy prompts the user for the information.
52
53 -D server/username/password/database/table
54 The connection information for the destination server and the lo‐
55 cation/name of the target table. If not specified, datacopy
56 prompts the user for the information.
57
58 -E Keep identity values.
59
61 freebcp(1), defncopy(1), bsqldb(1), tsql(1), FreeTDS User Guide.
62
64 datacopy first appeared in FreeTDS 0.64.
65
67 The datacopy utility was written by Bill Thompson
68 <thompbil@exchange.uk.ml.com>.
69
70FreeTDS 1.3.3 March 25, 2015 FreeTDS 1.3.3