Release 10.1A: OpenEdge Development:
Programming Interfaces

> ## get-dbname-list procedure

> Get list of connected databases with auditing enabled by calling `src/auditing/_get-db-list.p`. It also handles cases where the database is on the AppServer, if there is a connection to an AppServer. The list contains entries separated by the value of `CHR(1)`. Each entry contains the logical database name. It may also contain additional information such as `"read-only"` or `"appserver"`. List of possible entries is defined in `src/auditing/include/_aud-std.i`.

> Parameters:

> `OUTPUT pcList AS CHARACTER`

> List of databases, each database separated by the value of `CHR(1)`

> Example:

>     Define variable cList as char.
>     Define variable cdbInfo as char.
>     Define variable iLoop as int.
>     {auditing/include/_aud-utils.i}
>     Run get-dbname-list IN hAuditUtils (output cList).
>     DO iLoop = 1 TO NUM-ENTRIES(cList, CHR(1)):
>                ASSIGN cdbInfo = ENTRY(iLoop, cList, CHR(1)).
>     End.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095