Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

datacopy(1) [debian man page]

datacopy(1)							 FreeTDS Utilities						       datacopy(1)

NAME
datacopy - move table data between two servers SYNOPSIS
datacopy { -t | -a | -c owner } [-b batchsize] [-p packetsize] [-v] [-d] [-S server/username/password/database/table_or_view] [-D server/username/password/database/table] DESCRIPTION
datacopy is a utility distributed with FreeTDS. datacopy will move table data from one server to another without the need for intermediate files. datacopy is much faster and more efficient than is freebcp out/in. datacopy makes use of the db-lib bcp API built into FreeTDS. This API is also available to application developers. datacopy can be used to migrate data between Sybase ASE and SQL Server or vice versa. OPTIONS
-t Truncate target table before loading data. -a Append data to target table. -c owner Create the target table with the same schema as the source table. datacopy will submit a 'create table' command on the target server/database 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 is 1000. -p packetsize The number of bytes, per network packet, sent to and from the servers. Increased packet size can enhance performance. -v Produce verbose output, including diagnostic timings. -d Produce freetds TDSDUMP output. (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, data- copy will prompt 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, datacopy will prompt the user for the information. SEE ALSO
freebcp(1), defncopy(1), bsqldb(1), tsql(1), FreeTDS User Guide. HISTORY
datacopy first appeared in FreeTDS 0.64. AUTHORS
The datacopy utility was written by Bill Thompson (thompbil@exchange.uk.ml.com). doc 13 November 2011 datacopy(1)

Check Out this Related Man Page

tsql(1) 							 FreeTDS Utilities							   tsql(1)

NAME
tsql - utility to test FreeTDS connections and queries SYNOPSIS
tsql { -S servername [-I interface] | -H hostname -p port } -U username [-P password] [-o options] tsql -C DESCRIPTION
tsql is a diagnostic tool provided as part of FreeTDS. It uses the TDS protocol directly to connect to Sybase or Microsoft SQL Servers, and allows the user to issue queries that test the capabilities of FreeTDS. tsql is *not* a replacement for a complete isql, such as sqsh (www.sqsh.org). It is designed to rely on the lowest level FreeTDS library, tdslib, as a way to isolate potential bugs in the protocol implementation. tsql can be run in two ways, one which uses the freetds.conf and one which connects directly using the server's hostname and port. When -S is used, FreeTDS uses the freetds.conf (or equivalent) and environment variables in the normal way to determine the server's ip address and port. You can use -I to specify a filename, overriding FreeTDS's configuration file search algorithm. The -H and -p parameters are provided especially for troubleshooting new configurations (or servers). Use of these parameters causes FreeTDS to ignore any freetds.conf and environment variables. OPTIONS
-S servername the Database Server to which to connect. -I interface a freetds.conf or interfaces file describing servername -H hostname the DNS hostname of the server -p port the port at which SQL Server is listening -U username database login name. If username is not provided, a domain login is attempted for TDS 7+ connections. -P password database password. -L list server "instances" (with -H) -C prints some of the compile-time configuration parameters. -o options apply the options specified to every command. f No footer [result count] h No header [titles] t Print time v Print version q Quiet NOTES
Typing "exit", "quit", or "bye" (or ^D) exits tsql. Typing "version" displays the TDS protocol version. Command batches may be separated with "go" or "GO". If "GO", the version string is reported before executing the batch. After prompting for the password, tsql will attempt to connect to the remote server. tsql displays a counter indicating the number of seconds that it is attempting to connect. Typically, tsql should immediately respond with a '1>' prompt. If you see the counter (1, 2, 3, ...), most likely tsql is unable to connect to the indicated server. If you can connect with "tsql -S servername", your basic FreeTDS installation is working. If you have suggestions for ways to make tsql more useful as a diagnostic tool, please recommend them to the FreeTDS mailing list for con- sideration. HISTORY
tsql first appeared in FreeTDS 0.60. AUTHORS
The tsql utility was written by Brian Bruns. BUGS
Several, to be sure, now that it's documented. :) doc 13 November 2011 tsql(1)
Man Page