Java JDBC Database Metadata getDatabaseId(DatabaseMetaData md)

Here you can find the source of getDatabaseId(DatabaseMetaData md)

Description

get Database Id

License

Open Source License

Declaration

private static String getDatabaseId(DatabaseMetaData md) throws SQLException 

Method Source Code

//package com.java2s;

import java.sql.DatabaseMetaData;

import java.sql.SQLException;

public class Main {
    private static String getDatabaseId(DatabaseMetaData md) throws SQLException {
        return md.getDatabaseProductName() + " " + md.getDatabaseProductVersion();
    }// ww  w . ja v  a2 s.co  m
}

Related

  1. getColumnDefaultValue(DatabaseMetaData metaData, String tableName, String columnName)
  2. getColumnNames(Connection connection, String tableName)
  3. getColumnNames(String tablename, String column, Connection conn)
  4. getColumns(Connection connection, String name)
  5. getColumnSize(Connection con, String tableName, String columnName)
  6. getDatabaseInfo(Connection connection_)
  7. getDatabaseMetaData(Connection con)
  8. getDatabaseType(DatabaseMetaData metaData)
  9. getDBMSName(Connection conn)