Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004
    Posts
    76

    Unanswered: getting db2 version

    Hi,

    I am connecting DB2 7.1 via JDBC. I have a requirement to know the DB2 version i.e 7.1. How can i do it?

    it is some thing similar to SELECT @@VERSION in Microsoft SQLServer.

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    java.sql.DatabaseMetaData.getDatabaseMajorVersion( )
    java.sql.DatabaseMetaData.getDatabaseMinorVersion( )
    java.sql.DatabaseMetaData.getDatabaseProductVersio n()

Posting Permissions

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