defncopy man page on Cygwin

Man page or keyword search:  
man Server   22533 pages
apropos Keyword Search (all sections)
Output format
Cygwin logo
[printable version]

FreeTDS(May 14, 2011)					 FreeTDS(May 14, 2011)

NAME
       defncopy - extract procedures and views from a Microsoft server.

SYNOPSIS
       defncopy [-U username] [-P password] [-S server] [-D database]
       [-i input_file] [-o output_file] [-v]
       [owner.]object_name [[owner.]object_name...]

DESCRIPTION
       defncopy	 is  a utility program distributed with FreeTDS. It replaces a
       similar program of the same name distributed by Sybase.

       defncopy reads the text of a stored procedure or	 view,	and  writes  a
       script  suitable	 for  recreating the procedure or view. For tables, it
       reads the output of sp_help and constructs a  CREATE  TABLE  statement,
       complete with CREATE INDEX, too.

OBJECTS
       owner  is  optional  if	you  or the database owner is the owner of the
	      procedure/view being copied.

       object_name
	      is the name of the system object you wish to extract.

OPTIONS
       -U username
	      database server login name.

       -P password
	      database server password.

       -S server
	      database server to which to connect.

       -D database
	      database to use. Optional if the procedure/view being  extracted
	      is in your default database.

       -i input_file
	      a script to apply to the database. Not currently implemented.

       -o output_file
	      a file to hold the script, defaults to standard output.

       -v     Show version information and copyright notice.

NOTES
       defncopy	 is a filter; it reads from standard input, writes to standard
       output, and writes errors to standard error.  The  -i  and  -o  options
       override these, of course.

       defncopy	 makes	use of the db-lib API provided by FreeTDS. This API is
       of course also available to application developers.

EXIT STATUS
       defncopy exits 0 on success, and >0 if the server  cannot  process  the
       query.

       defncopy	 will  report any errors returned by the server, but will con‐
       tinue processing.

HISTORY
       defncopy first appeared in FreeTDS 0.63.

AUTHORS
       The defncopy utility was written by James K. Lowden <jklowden@schemama‐
       nia.org>

BUGS
       Works only with Microsoft servers and ancient Sybase servers.

       Does not create primary keys.

       Many  options  are  defined by Sybase that this version does not imple‐
       ment. Feel free to correct this situation.

       In theory, defncopy could apply/produce DDL for any system object,  but
       at  present  only  tables, procedures and views are supported, and only
       for extraction.

FreeTDS Utilities		    0.91RC2		 FreeTDS(May 14, 2011)
[top]

List of man pages available for Cygwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net