Java JDBC Database Metadata getDBMSName(Connection conn)

Here you can find the source of getDBMSName(Connection conn)

Description

get DBMS Name

License

Apache License

Declaration

public static String getDBMSName(Connection conn) throws SQLException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.sql.Connection;
import java.sql.DatabaseMetaData;

import java.sql.SQLException;

public class Main {

    public static String getDBMSName(Connection conn) throws SQLException {
        DatabaseMetaData dmd = conn.getMetaData();
        return dmd.getDatabaseProductName();
    }//w  ww.jav  a 2 s . co m
}

Related

  1. getColumnSize(Connection con, String tableName, String columnName)
  2. getDatabaseId(DatabaseMetaData md)
  3. getDatabaseInfo(Connection connection_)
  4. getDatabaseMetaData(Connection con)
  5. getDatabaseType(DatabaseMetaData metaData)
  6. getDBProduct(Connection conn)
  7. getDBTables(DatabaseMetaData metaData, String dataBase, String user)
  8. getDbType(Connection connection)
  9. getDBUsers(DatabaseMetaData metaData)