public static boolean checkSchemaExist(final Connection conn, final String schemaName) throws Exception {
        boolean result = false;
        final String checkSchemaSql = SQLServerSqlBuilder.getCheckSchema(schemaName);
        try (Statement statement = conn.createStatement();
                ResultSet resultSet = statement.executeQuery(checkSchemaSql)) {
            if (null != resultSet && resultSet.next()) {
                int count = resultSet.getInt(1);
                if (count > 0) {
                    result = true;
                }
            }
        }
        LOG.info("check schema exist for schemaName={}, result={}", schemaName, result);
        return result;
    }
Check schema from the SQLServer information_schema.schemata.

@param conn JDBC Connection  {@link Connection}
@param schemaName SQLServer schema
@return true if schema exist, otherwise false
@throws Exception on check schema exist error
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/sink/sqlserver/SQLServerJdbcUtils.java