try {
ResultSet rs = TestSQLConnection.SQLSelect("Select * from sysobjects");
rs.last();
int r = rs.getRow();
int c = rs.getMetaData().getColumnCount();
head= new String[c];obj = new String[r][c];
for (int i = 0; i < rs.getMetaData().getColumnCount(); i++) {
head[i] = rs.getMetaData().getColumnName(i + 1);
}
rs.first();
int rr=0;
while(rs.next()) {
for (int cc = 0; cc <c; cc++) {
obj[rr][cc] = rs.getString(cc+1);
}
rr++;
}