package cn.cerc.db.mssql;

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

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class JdbcMsSql {

    public static final String JDBC_URL = "jdbc:sqlserver://112.124.37.146:1433;databaseName=MIMRC_Std;";
    private static final String user = "sa";
    private static final String password = "Ping0909";

    public static Connection connection;

    public static void main(String[] args) {
        try {
            Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
            connection = DriverManager.getConnection(JDBC_URL, user, password);
            if (connection != null) {
                DatabaseMetaData meta = connection.getMetaData();
                log.info("Driver Name {}", meta.getDriverName());
                log.info("Driver Version {}", meta.getDriverVersion());
                log.info("Product Name {}", meta.getDatabaseProductName());
                log.info("Product Version {}", meta.getDatabaseProductVersion());
            }
        } catch (Exception sqlException) {
            sqlException.printStackTrace();
        }
    }
}
@@ -782,24 +782,25 @@
 %22Driver Name
+:
  %7B%7D%22, meta.g
@@ -848,32 +848,33 @@
 (%22Driver Version
+:
  %7B%7D%22, meta.getDr
@@ -927,16 +927,17 @@
 uct Name
+:
  %7B%7D%22, me
@@ -1007,16 +1007,17 @@
  Version
+:
  %7B%7D%22, me

Update JdbcMsSql.java