• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

problem in insering data in msaccess thru jdbc

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
friends when i use to insert data in database using execute update there is no problem ,but when i used prepared statement
to insert the same data in ms access its not working.Its funny that the programme is running on sql server without any problem
here is the code,please sort it out
few lines of code....

Connection con1=DriverManager.getConnection("jdbc dbc:sraturi");
PreparedStatement pst=con1.prepareStatement("INSERT INTO sr values(?,?,?)");
System.out.println("before update");

int r =pst.executeUpdate();
System.out.print("update completed" + r );

catch (Exception e)
System.out.println(" ");
thanx in advance
Water! People swim in water! Even tiny ads swim in water:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic