May 8, 2002 #1 Rosti Programmer Mar 5, 2002 46 US Hi. Is it any way to write this kind of a statement: SELECT "current_database_name" FROM .... Thanks in advance. Rostik
Hi. Is it any way to write this kind of a statement: SELECT "current_database_name" FROM .... Thanks in advance. Rostik
May 8, 2002 2 #2 olded Programmer Oct 27, 1998 1,065 US Rosti: Here's a trick I learned from Jonathan Leffler, the heavy-weight of all Informix heavy weights: SELECT ODB_DBName FROM SysMaster:"informix".SysOpenDB WHERE ODB_SessionID = DBINFO('sessionid') AND ODB_IsCurrent = 'Y'; SysOpenDb isn't a table, but a view into the SysMaster database. Regards, Ed Upvote 0 Downvote
Rosti: Here's a trick I learned from Jonathan Leffler, the heavy-weight of all Informix heavy weights: SELECT ODB_DBName FROM SysMaster:"informix".SysOpenDB WHERE ODB_SessionID = DBINFO('sessionid') AND ODB_IsCurrent = 'Y'; SysOpenDb isn't a table, but a view into the SysMaster database. Regards, Ed
May 9, 2002 Thread starter #3 Rosti Programmer Mar 5, 2002 46 US Thank you very much for the responces. Ed, your SELECT work just wonderfull !!!!! Thanks again for help. Rostik Upvote 0 Downvote
Thank you very much for the responces. Ed, your SELECT work just wonderfull !!!!! Thanks again for help. Rostik