Did this article resolve your question/issue?



Basic SQL 92 GRANT syntax.


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

There are two forms of the GRANT statement:
  • Grant database-wide privileges, such as system administration (DBA), general creation (RESOURCE), audit administration (AUDIT_ADMIN), audit archive (AUDIT_ARCHIVE), or audit insert (AUDIT_INSERT).
  • Grant various privileges on specific tables and views. Privilege definitions are stored in the system tables SYSDBAUTH, SYSTABAUTH, and SYSCOLAUTH for the database, tables, and columns, respectively.

Note: It is necessary to separate commands to grant DBA or RESOURCE privileges with any of the AUDIT privileges.
Using the same command to grant a user with DBA or RESOURCE privileges and any of the AUDIT privileges results in an error.

General syntax:

grant RESOURCE, DBA to myuser;

General syntax to grant specific privileges on a table within the database:
GRANT { privilege [, privilege ] , ... | ALL [ PRIVILEGES] } ON table_name TO { username [, username ] , ... | PUBLIC } [ WITH GRANT OPTION ] ;

NOTE:  In the above syntax, the PRIVILEGES option is composed of one or more privileges and has specific syntax as well:
{ SELECT | INSERT | DELETE | INDEX | UPDATE [ ( column , column , ... ) ] | REFERENCES [ ( column , column , ... ) ] }

Sequences within a database may have either the select or update privileges set with the following syntax:
GRANT [SELECT | UPDATE] ON SEQUENCE schema.sequence TO user_name [,user_name]...

Stored procedures must also have privileges set for users to execute the stored procedure:
GRANT EXECUTE ON StoredJavaProcedureName () TO { username [, username ] , ... | PUBLIC } [ WITH GRANT OPTION ] ;
References to Other Documentation:
Online Documentation:

OpenEdge® Data Management:  SQL Reference
Last Modified Date4/8/2016 6:23 PM
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.