Re: ESQL/C: List of databases
Posted in 1994
In article <2ilufrINNh25@emory.mathcs.emory.edu> cinsop@frodo.nask.org.pl ("Centr. Instytut Ochrony Pracy") writes: > Hi, > Is there a way of determinig the names of all created databases > from within an esql/c program? > I want to present a user with a list of available databases to choose > from but I have no idea how to get to it. Tbmonitor does it so I gather > it is possible. > I'm using online 4.1 engine, esql/c 4.1 on a SunOS 4.1.1 system. > Thanx in advance. I would also like to know if there is a way to "query" the database for a list of databases. This is how I do it from a sh script: tbcheck -cp|grep "Database:"|awk '{print $2}' This will give you a list of all database names. NOTE: I am using Online 5.0.1 -- Rick Hamel Database Administrator x2345 rickh@marcam.com