Feedback
Did this article resolve your question/issue?

   

Article

Basic SQL 92 REVOKE syntax.

« Go Back

Information

 
TitleBasic SQL 92 REVOKE syntax.
URL NameBasic-SQL-92-REVOKE-syntax
Article Number000184171
EnvironmentProduct: Progress
Product: OpenEdge
Version: 9.x, 10.x, 11.x
OS: All supported platforms
Question/Problem Description
Basic SQL 92 REVOKE syntax.
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution
The REVOKE function can remove various privileges from a specified users or group of users within a database.

There are two forms of the REVOKE statement:
  • Revoke database-wide privileges, either system administration (DBA), general creation (RESOURCE), audit administration (AUDIT_ADMIN), audit archive (AUDIT_ARCHIVE), or audit insert (AUDIT_INSERT)
  • Revoke various privileges on specific tables and views
General syntax:
REVOKE { RESOURCE , DBA, AUDIT_ADMIN, AUDIT_ARCHIVE, AUDIT_INSERT} FROM { username [ , username ] , ... } [ RESTRICT | CASCADE ] [ GRANTED BY ANY_USER ];

If the REVOKE statement specifies CASCADE, revoking the access privileges from a user also revokes the privileges from all users who received the privilege from that user.
If the REVOKE statement specifies neither RESTRICT nor CASCADE, the behavior is the same as for CASCADE.

NOTE: CASCADE is not supported for AUDIT_ADMIN, AUDIT_ARCHIVE, and AUDIT_INSERT privileges.
The only user who can revoke an audit privilege is the user who granted it.
 
Example:
revoke RESOURCE, DBA FROM myuser;
 
Workaround
Notes
References to Other Documentation:
Online Documentation:

OpenEdge® Data Management:  SQL Reference
Last Modified Date4/8/2016 6:40 PM
Attachment 
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.