Re: Find out database
Posted in 1997
If you are using 7.x ESQL/C you can use GET DIAGNOSTICS to fetch several types of information including the current database name. RTFM 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??? >Thanx in advance >-- jony > > _/ _/ _/_/ _/ _/ _/ _/ _/_/_/ >_/_/_/ > O~~* _/ _/ _/ _/ _/_/ _/ _/_/ _/ _/ _/ >\\|/ > - ~ -~~~~~~~~_/_/_/_/ _/_/_/_/ _/ _/_/ _/ _/_/ _/_/_/ _/_/_/_/ >~~~~zap! >/ \\ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ >/ | \\ >| | _/ _/ _/ _/ _/ _/ _/ _/ _/_/_/ >_/_/_/ >\\ / Johannes {'Johnny' | 'Hannes' | 'Jony'} >Plassmann > - - c/o Siemens Nixdorf Informationssysteme >AG > ~ LoB ITS >RC61 > >Heinz-Nixdorf-Ring > 33106 Paderborn, >Germany > Phone: +49 5251 >8-25825 > Fax: +49 5251 >8-27199 > NERV: >plassmann.pad > Internet: >plassmann.pad@sni.de