Kbase P6449: 4GL: How to retrieve the name of all the connected databases?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/9/2010 |
|
Status: Unverified
GOAL:
How to get the name of all the connected databases?
GOAL:
How to get the name of connected databases?
FACT(s) (Environment):
All Supported Operating Systems
Progress/OpenEdge Product Family
FIX:
The DBNAME function only returns the 1st connected database. Use the LDBNAME() and NUM-DBS() 4GL functions as bellow.
DEFINE VARIABLE i AS INTEGER NO-UNDO.
DO i = 1 TO NUM-DBS:
MESSAGE LDBNAME(i) VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.