Progress
Language Reference
DBRESTRICTIONS Function
Returns a character string that describes features that are not supported for this database. You can use this function with Progress DataServers.
SYNTAX
integer-expression
The sequence number of a database the Progress session is connected to. For example, DBRESTRICTIONS(1) returns information on the first database the Progress session is connected to, DBRESTRICTIONS(2) returns information on the second database the Progress session is connected to, and so on. If you specify a sequence number that does not correspond to a database the Progress session is connected to, the DBRESTRICTIONS function returns the unknown value (?).
logical-name or alias
These forms of the DBRESTRICTIONS function 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 Progress 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, DBRESTRICTIONS returns the list of unsupported features for the specified table. Otherwise, it returns the unknown value (?).
EXAMPLEThis procedure displays the logical name and database restrictions of all connected databases.
NOTES
- If you want to use the DBRESTRICTIONS function for a database, you must be connected to the database in the current Progress session.
- DBRESTRICTIONS returns a string. This string is a comma-separated list of keywords that represent features not supported by the specified database. Table 17 shows the possible keywords and their descriptions.
For example, if the database is accessed through a manager that does not support FIND LAST and FIND PREV, then the DBRESTRICTIONS function returns the string LAST, PREV.
- The possible keyword values returned by DBRESTRICTIONS depends on the DataServer type. Table 18 shows the possible values returned for each DataServer.
NOTE: The available DataServers depend on your version of Progress. For more information, see your Progress DataServer documentation.- The form of the returned string makes it easy to use with the ENTRY and LOOKUP function.
- If you connect to a database with the Read Only (-RO) parameter, Progress lists the character string READ-ONLY in the restrictions list for that database.
NOTE
A database must be connected in order for the DBRESTRICTIONS function to work as described.
SEE ALSO
ALIAS Function, CONNECT Statement, CONNECTED Function, CREATE ALIAS Statement, CREATE DATABASE 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
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |