home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / usr / sybase / doc / defncopy.man < prev    next >
Encoding:
Text File  |  1993-04-22  |  4.6 KB  |  111 lines

  1.  
  2.   1                       Version 4.0 -- 1/15/89                defncopy
  3.   ______________________________________________________________________
  4.  
  5.   NAME:  defncopy
  6.  
  7.   FUNCTION:
  8.        Copies  definitions  for  specified   views,   rules,   defaults,
  9.        triggers,  procedures,  or reports from a database to a host file
  10.        or from a host file to a database.
  11.  
  12.  
  13.        NOTE  _____________________________________________________________
  14.        |                                                                 |
  15.        |  The defncopy utility can not copy table definitions.           |
  16.        |_________________________________________________________________|
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.   defncopy                Version 4.0 -- 1/15/89                       2
  25.   ______________________________________________________________________
  26.  
  27.   SYNTAX:
  28.        defncopy [ -U username ]  [ -P password ] [ -S server ] [-N ]
  29.         [ -I interface ] { in filename dbname | out filename dbname
  30.         [owner.]objectname [[owner.]objectname]...}
  31.  
  32.   PARAMETERS:
  33.        -U username -  allows the user to specify a  login  name.   Login
  34.            names are case sensitive.
  35.        -P password -  allows the user to specify a password.  If -P  has
  36.            no  argument,  defncopy uses the default password (NULL); put
  37.            -P by itself at the end of the command line.  If  -P  is  not
  38.            given, the user is prompted for a password.
  39.        -S  server -   allows  the  user  to  specify  the  name  of  the
  40.            SQL Server  with  which  to  connect.  Server names are case-
  41.            sensitive, and are usually in upper case.
  42.        -I interface -  allows the user to specify the name and  location
  43.  
  44.  
  45.  
  46.   3                       Version 4.0 -- 1/15/89                defncopy
  47.   ______________________________________________________________________
  48.            of the interfaces file that is (optionally) searched as  part
  49.            of  the  process of connecting to SQL Server.  The named file
  50.            contains the name and  network  address  of  every  available
  51.            SQL Server  on  the  network.   If  this  option is not used,
  52.            defncopy looks for a file named interfaces.
  53.        in | out -  specifies the direction of definition copy.
  54.        filename -  specifies the name of the operating system file  des-
  55.            tination  or  source  for  the definition copy.  The copy out
  56.            will overwrite an existing file.
  57.        dbname -  specifies the name of the database from or to which the
  58.            definitions are being copied.
  59.        objectname -   specifies  name(s)  of  database   object(s)   for
  60.            defncopy  to copy out.  This parameter is not used when copy-
  61.            ing definitions in.
  62.  
  63.   COMMENTS:
  64.  
  65.        o The defncopy program is invoked  directly  from  the  operating
  66.  
  67.  
  68.   defncopy                Version 4.0 -- 1/15/89                       4
  69.   ______________________________________________________________________
  70.          system.  defncopy provides a non-interactive way of copying out
  71.          definitions  (CREATE  statements)  for  views, rules, defaults,
  72.          triggers, procedures, or reports from  a  database  to  a  host
  73.          file.   Alternatively, it will copy in all the definitions in a
  74.          specified file.
  75.  
  76.        o The infile or outfile name and the database name  are  required
  77.          and  must  be  unambiguously stated.  For copying out, use file
  78.          names that reflect both the object's name and its owner.
  79.        o Values specified to defncopy should be  enclosed  in  quotation
  80.          marks  if  they contain characters that could be significant to
  81.          the shell.
  82.  
  83.        o The defncopy utility cannot be used to copy table definitions.
  84.        o You must have SELECT permission on objects in order to copy out
  85.          their definitions.
  86.  
  87.        o You must have the appropriate CREATE permission for the type of
  88.  
  89.  
  90.   5                       Version 4.0 -- 1/15/89                defncopy
  91.   ______________________________________________________________________
  92.          object you are copying in.  Objects copied  in  belong  to  the
  93.          copier.   A  System  Administrator  copying  in  definitions on
  94.          behalf of a user should be logged in as that user, in order for
  95.          that  user  to have proper access to the reconstructed database
  96.          objects.
  97.  
  98.  
  99.   WARNING  _______________________________________________________________
  100.   |                                                                      |
  101.   |  Long comments (>100 characters) placed before a CREATE statement    |
  102.   |  may cause defncopy to fail.                                         |
  103.   |______________________________________________________________________|
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.