GET_DB_TYPE

Use the GET_DB_TYPE script function to retrieve the database type as defined in the INI file of the server. For more information on configuring the INI file, see Automation Engine.

Syntax

GET_DB_TYPE()

Return Codes

  • D
    DB2

  • N
    SQL-SERVER

  • O
    ORACLE

  • P
    POSTGRESQL

Example

If the database is PostgreSQL, then the following script returns P.

:SET &RET# = GET_DB_TYPE()

See also: