PreviousNextIndex

DBTYPE function

Returns, as a character string, the database type of a currently connected database. This function returns one of the following strings: "MSS", "ODBC", "ORACLE", or "PROGRESS".

Syntax

DBTYPE ( integer-expression | logical-name | alias ) 

integer-expression
logical-name or alias
Example

This procedure displays the logical name and database type of all connected databases:

r-dbtype.p
DEFINE VARIABLE ix AS INTEGER NO-UNDO. 
REPEAT ix = 1 TO NUM-DBS: 
  DISPLAY LDBNAME(ix) DBTYPE(ix) FORMAT "x(40)". 
END. 

Note

You can reference the DBTYPE function within a preprocessor expression. For more information, see the &IF, &THEN, &ELSEIF, &ELSE, and &ENDIF preprocessor directives reference entry.

See also

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


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex