Progress
Language Reference


NUM-DBS Function

Interfaces
OS
SpeedScript
All
All
Yes

Takes no arguments; returns the number of connected databases.

SYNTAX

NUM-DBS 

EXAMPLE

This procedure uses NUM-DBS to display the logical name and database restrictions of all connected databases.

r-numdbs.p
DEFINE VARIABLE i AS INTEGER.
REPEAT i = 1 TO NUM-DBS:
  DISPLAY LDBNAME(i) DBRESTRICTIONS(i) FORMAT "x(40)".
END. 

SEE ALSO

ALIAS Function, CONNECT Statement, CONNECTED Function, CREATE ALIAS Statement, CREATE DATABASE Statement, DATASERVERS Function, DBCODEPAGE Function, DBCOLLATION Function, DBRESTRICTIONS Function, DBTYPE Function, DBVERSION Function, DELETE ALIAS Statement, DISCONNECT Statement, FRAME-DB Function, LDBNAME Function, PDBNAME Function, SDBNAME Function


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