From 18391f9690d365954f445bfe3db625875a6ac740 Mon Sep 17 00:00:00 2001 From: Andres Gomez Casanova Date: Mon, 7 Jan 2019 11:56:13 -0500 Subject: [PATCH] Create dcl --- sheets/_db2/dcl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sheets/_db2/dcl diff --git a/sheets/_db2/dcl b/sheets/_db2/dcl new file mode 100644 index 0000000..26e055e --- /dev/null +++ b/sheets/_db2/dcl @@ -0,0 +1,9 @@ +--Grant on a table +GRANT SELECT, INSERT ON TABLE mytable TO GROUP recur + +--Grant execution on a stored procedure +GRANT EXECUTE ON PROCEDURE myproc(SMALLINT, VARCHAR(16)) TO USER jdoe +GRANT EXECUTE ON SPECIFIC PROCEDURE myproc1 TO USER jdoe + +--Revoke on a table +REVOKE UPDATE, DELETE ON TABLE mytable FROM GROUP recur