This is the command defncopy that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
defncopy - extract procedures and views from a Microsoft server.
defncopy [-U username] [-P password] [-S server] [-D database]
[-i input_file] [-o output_file] [-v]
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.
owner is optional if you or the database owner is the owner of the procedure/view being
is the name of the system object you wish to extract.
database server login name.
database server password.
database server to which to connect.
database to use. Optional if the procedure/view being extracted is in your default
a script to apply to the database. Not currently implemented.
a file to hold the script, defaults to standard output.
-v Show version information and copyright notice.
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.
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 continue processing.
defncopy first appeared in FreeTDS 0.63.
The defncopy utility was written by James K. Lowden <[email protected]>
Use defncopy online using onworks.net services