Hi!!!!!!!!!!!!!!!!! i got this soluation....
plz check it .. package javaapplication3; import java.sql.*; import java.util.*; /** * * @author Bishakh */ public class Main { /** * @param args the command line arguments */ static StringBuffer buf=new StringBuffer(20); static int i=0; public static void main(String[] args) { // TODO code application logic here try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:mdsn"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from dmm"); while(rs.next()) { String str=rs.getString(2); System.out.println(str); buf.append(str); i++; } } catch(Exception e){System.out.println("///////////////"+e+i);} System.out.println(buf); } } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---