Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    9

    Unanswered: dbname in user???

    How to find which database is currently in use?? Is there any command to find out...Like in SQL Server there is command called db_name() which returns the current database in use or selected..Please help its and urgent requirment.

  2. #2
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    select current server from sysibm.sysdummy1;
    M. A. Feldman
    IBM Certified DBA on DB2 for Linux, UNIX, and Windows
    IBM Certified DBA on DB2 for z/OS and OS/390

  3. #3
    Join Date
    Sep 2006
    Posts
    9

    thanks

    Hi,

    THanks for ur Prompt reply. My propblem is solved.. Thanks very much.

  4. #4
    Join Date
    Jan 2003
    Posts
    1,605
    Hi,
    one more solution:
    Code:
    values (current server);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •