PreviousNextIndex

SDBNAME function

Accepts an integer expression or a character expression as a parameter. If the parameter resolves to a currently connected non-OpenEdge database then the SDBNAME function returns the logical name of the schema holder database containing the non-OpenEdge schema. If the parameter resolves to a currently connected OpenEdge database, the SDBNAME function returns the logical name of this database.

Syntax

SDBNAME  ( { integer-expression | logical-name | alias } ) 

integer-expression
logical-name or alias
Example

This procedure displays schema holder databases, if applicable, for all connected databases:

r-sdbnm.p
DEFINE VARIABLE ix AS INTEGER NO-UNDO. 
REPEAT ix = 1 TO NUM-DBS: 
  DISPLAY SDBNAME(ix) SDBNAME(ix) = LDBNAME(ix) 
  FORMAT "SCHEMA-HOLDER/SUB-SCHEMA        " 
    COLUMN-LABEL "  DataServer!Classification". 
END. 

See also

ALIAS function, CONNECT statement, CONNECTED function,CREATE ALIAS statement, CREATE CALL statement, DATASERVERS function, DBCODEPAGE function, DBCOLLATION function, DBRESTRICTIONS function, DBTYPE function, DBVERSION function, DELETE ALIAS statement, DISCONNECT statement, FRAME-DB function, LDBNAME function, NUM-DBS function, PDBNAME function


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex