Re: Find out database
Posted in 1997
Johannes Plassmann <plassmann.pad@sni.de> wrote: :Hi there, :everybody knows the ESQL-C commands : :EXEC SQL DATABASE <databasename> :... :... :... :EXEC SQL CLOSE DATABASE : :At some time during my execution of the code I need to figure out, :which database I currently working on. If I had access to <databasename> :it should be no problem, but I am doing some checks in a shared libray, :which in turn has no knowledge about <databasename>. Therefore I looking :forward to find out the <databasename> which is currently in use... :Any hints??? Whatever language you are using the above statements should be in separate routines. In that case it would be easy to make an extra one that would return the name of the current database (or an empty string if there was no current one). :Thanx in advance : :-- jony Nils.Myklebust@idg.no NM Data AS, P.O.Box 9090 Gronland, N-0133 Oslo, Norway My opinions are those of my company The Informix FAQ is at http://www.iiug.org