DATACOPY(1)
DATACOPY(1) π move table data between two servers π
πΈ NAME πΈ
datacopy β move table data between two servers.
π¦ SYNOPSIS π¦
datacopy [-vdE] {-t | -a | -c owner} [-b batchsize] [-p packetsize]
[-S server/username/password/database/table_or_view]
[-D server/username/password/database/table] [-T textsize]
β¨ DESCRIPTION β¨
okay so bestie, datacopy is a utility distributed with FreeTDS. It moves table data from one server to another without the need for intermediate files β no temp-file middleman, we love that for us π.
It is much faster and more efficient than is freebcp out/in. No cap.
datacopy makes use of the db-lib bcp API built into FreeTDS. This API is also available to application developers β slay for them β¨.
datacopy can be used to migrate data between Sybase ASE and SQL Server or vice versa. Iconic cross-server behavior π
.
π OPTIONS π
-tβ truncate the target table before loading data. (Target gets cleared first, bestie.)-aβ append data to the target table.-c ownerβ create the target table with the same schema as the source table.datacopysubmits aCREATE TABLEcommand on the target server using the specified owner in the command, e.g.CREATE TABLE owner.table (...).-b batchsizeβ the number of rows per batch of data copied. Each batch of data is effectively committed to the database. The default is1000.-p packetsizeβ the number of bytes, per network packet, sent to and from the servers. Increased packet size can enhance performance.-T textsizeβ specify size ofTEXT/IMAGEcolumn from network.-vβ produce verbose output, including diagnostic timings.-dβ producefreetdsTDSDUMPoutput. (Serious debug only!)-S server/username/password/database/table_or_viewβ the connection information for the source server and the location/name of the table (or view) to be copied. If not specified,datacopyprompts the user for the information.-D server/username/password/database/tableβ the connection information for the destination server and the location/name of the target table. If not specified,datacopyprompts the user for the information.-Eβ keep identity values.
Heads-up for -d: the original says βSerious debug only!β and we are respecting that energy π.
π SEE ALSO π
freebcp(1), defncopy(1), bsqldb(1), tsql(1), FreeTDS User Guide.
π HISTORY π
datacopy first appeared in FreeTDS 0.64. A little vintage moment π.
π«Ά AUTHORS π«Ά
The datacopy utility was written by Bill Thompson <thompbil@exchange.uk.ml.com>. Thank you Bill, king behavior π.
This pageβs very cute sign-off: FreeTDS 1.5.20, dated March 25, 2015. Bye bestie, go move that table data responsibly πΈβ¨
π¦ where this page comes from
- arch rolling: freetds 1.5.20-1 Β· GPL-2.0-only AND LGPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms