Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2004
    Posts
    32

    Unanswered: Server Name and Database name

    Hi,
    Is there a way to know the servername and database name in UDB 8.01.005
    as in Sybase

    SELECT @@SERVERNAME

    Do we have a similar query.

    Thanks

  2. #2
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650
    db2 "values(current server)"
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  3. #3
    Join Date
    Mar 2004
    Posts
    46
    You can get the database name by using the CURRENT SERVER special register as follows -

    SELECT CURRENT SERVER FROM SYSIBM.SYSDUMMY1

Posting Permissions

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