// multiple tables
ImportSQLCommand comm = new ImportSQLCommand(workspace.getFactory().getNewId("C"),
dbType.name(), hostname, portnumber, username, password, dBorSIDName, query);
workspace.getCommandHistory().addPreviewCommand(comm);
c.add(new InfoUpdate("Sucessfully imported data using SQL"));
c.add(new SQLCommandUpdate(comm.getId()));
} catch (Throwable e) {
String message = e.getMessage().replaceAll("\n", "").replaceAll("\"", "\\\"");
ErrorUpdate errUpdt = new ErrorUpdate(message);
c.add(errUpdt);
}