DBRESTRICTIONS function
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
Returns a character string that describes features that are not supported for this database. You can use this function with OpenEdge DataServers.
Syntax
|
- integer-expression
- The sequence number of a database the ABL session is connected to. For
example,
DBRESTRICTIONS(1)returns information on the first database the ABL session is connected to,DBRESTRICTIONS(2)returns information on the second database the ABL session is connected to, and so on. If you specify a sequence number that does not correspond to a database the ABL session is connected to, theDBRESTRICTIONSfunction returns the Unknown value (?). - logical-name or alias
- These forms of the
DBRESTRICTIONSfunction require a character expression as a parameter. An unquoted character string is not permitted. If the parameter is an alias or the logical name of a connected database, then the AVM returns the database restrictions string. Otherwise, it returns the Unknown value (?). - table-name
- A character expression equal to the name of a table in the specified
database. An unquoted character string is not permitted. If the table name is valid,
DBRESTRICTIONSreturns the list of unsupported features for the specified table. Otherwise, it returns the Unknown value (?).
Example
This procedure displays the logical name and database restrictions of all connected databases:
r-dbrest.p
|
Notes
- If you want to use the
DBRESTRICTIONSfunction for a database, you must be connected to the database in the current ABL session. -
DBRESTRICTIONSreturns a string. This string is a comma-separated list of keywords that represent features not supported by the specified database. The following table shows the possible keywords and their descriptions.Table 1. DBRESTRICTIONS keyword values Keyword Description AGGREGATECannot use the AGGREGATEstatement.COUNT-OFCannot use the COUNT-OFfunction.DEFAULT-AREASCannot use default areas. FIPSDatabase is running in FIPS mode. LASTCannot invoke the FIND LASTstatement.PREVCannot invoke the FIND PREVstatement.READ-ONLYCannot perform updates in the database. RECIDCannot use the RECIDfunction.SET-CURRENT-VALUECannot set the current value of sequence generators. SETUSERIDCannot use the SETUSERIDfunction.For example, if the database is accessed through a manager that does not support
FIND LASTandFIND PREV, then theDBRESTRICTIONSfunction returns the stringLAST, PREV. -
The possible keyword values returned by
DBRESTRICTIONSdepends on the DataServer type. The following table shows the possible values returned for each DataServer.Table 2. DBRESTRICTIONS return values by DataServer DataServer Possible return values ORACLE "LAST,PREV,READ-ONLY,RECID,SETUSERID, SET-CURRENT-VALUE,DEFAULT-AREAS,AGGREGATE"OpenEdge "READ-ONLY,DEFAULT-AREAS,AGGREGATE"Note: The available DataServers depend on your version of OpenEdge. For more information, see your OpenEdge DataServer documentation. - The form of the returned string makes it easy to use with the
ENTRYandLOOKUPfunction. - If you connect to a database with the Read Only (
-RO) parameter, the AVM lists the character string READ-ONLY in the restrictions list for that database.
See also
ALIAS function, CONNECT statement, CONNECTED function, CREATE ALIAS statement, CREATE CALL statement, DATASERVERS function, DBCODEPAGE function, DBCOLLATION function, DBTYPE function, DBVERSION function, DELETE ALIAS statement, DISCONNECT statement, FRAME-DB function, LDBNAME function, NUM-DBS function, PDBNAME function, SDBNAME function