1 &ANALYZE-SUSPEND _VERSION-NUMBER UIB_v8r12
3 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _DEFINITIONS Procedure
4 /*--------------------------------------------------------------------------
6 Purpose
: Create a schema df to delete all replication triggers
7 from the current database
9 Syntax
: delreptg.p
( <file-name
> )
13 Author
(s
) : Donald Christie
16 ------------------------------------------------------------------------*/
17 /* This .W file was created with the Progress UIB.
*/
18 /*----------------------------------------------------------------------*/
20 /* *************************** Definitions
************************** */
22 DEF INPUT PARAMETER file-name
AS CHAR NO-UNDO.
24 /* _UIB-CODE-BLOCK-END
*/
28 &ANALYZE-SUSPEND _UIB-PREPROCESSOR-BLOCK
30 /* ******************** Preprocessor Definitions
******************** */
32 &Scoped-define PROCEDURE-TYPE Procedure
36 /* _UIB-PREPROCESSOR-BLOCK-END
*/
41 /* *********************** Procedure Settings
************************ */
43 &ANALYZE-SUSPEND _PROCEDURE-SETTINGS
44 /* Settings for
THIS-PROCEDURE
48 Add Fields to
: Neither
49 Other Settings
: CODE-ONLY
COMPILE
51 &ANALYZE-RESUME _END-PROCEDURE-SETTINGS
53 /* ************************* Create Window
************************** */
55 &ANALYZE-SUSPEND _CREATE-WINDOW
56 /* DESIGN Window definition
(used by the UIB
)
57 CREATE WINDOW Procedure
ASSIGN
60 /* END WINDOW DEFINITION
*/
67 &ANALYZE-SUSPEND _UIB-CODE-BLOCK _CUSTOM _MAIN-BLOCK Procedure
70 /* *************************** Main Block
*************************** */
72 IF file-name
= ?
THEN file-name
= "rplctn\delreptg.df".
74 OUTPUT TO VALUE( file-name
).
76 FOR EACH _File
WHERE NOT _File._File-Name
BEGINS "_" NO-LOCK:
79 "UPDATE TABLE """ _file._file-name
"""" SKIP
80 " TABLE-TRIGGER ""REPLICATION-CREATE"" DELETE" SKIP
81 " TABLE-TRIGGER ""REPLICATION-DELETE"" DELETE" SKIP
82 " TABLE-TRIGGER ""REPLICATION-WRITE"" DELETE" SKIP.
88 /* _UIB-CODE-BLOCK-END
*/