sqlca.dbname

returns the name of the currently connected database

messagebox=<sqlca.dbname>