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

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