1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    1
    Vote Rating
    0
    durgesh2009.sahu is on a distinguished road

      0  

    Default Unanswered: Establishing Connection with MS-ACCESS Using GXT

    Unanswered: Establishing Connection with MS-ACCESS Using GXT


    Hi all,
    I was trying to connect MS-Access database with GXT using following code....

    private static Statement st=null;
    private static ResultSet rs=null;
    private static Connection con=null;
    private static List<Stock> arr=new ArrayList<Stock>();


    try
    {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:dsn");
    st=con.createStatement();
    System.out.println("Connection: "+con);
    rs=st.executeQuery("select * from Employee");
    while(rs.next())
    {
    Stock s=new Stock();
    s.setEmp_id(rs.getInt("emp_id"));
    s.setEmp_name(rs.getString("emp_name"));
    s.setSalary(rs.getDouble("salary"));
    s.setEmp_address(rs.getString("emp_address"));
    arr.add(s);
    }
    }
    It gave me error at first line as " [ERROR] [binding] - Line 10: No source code is available for type java.sql.Statement; did you forget to inherit a required module?"

    Does anybody have idea how should i connect GXT with MS-Access database..???

    Thanks
    Last edited by durgesh2009.sahu; 19 Jul 2012 at 7:12 AM. Reason: Previous question was wrong

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi