File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a q about deleting record(s) using JDBC:ODBC and Microsoft Access

 
Mahmoud Hadad
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi evreyone,
when i try to delete a record or records using JDBC:ODBC bridge the record does not get deleted till i make a duplicate of that statement(as i think it might be because Access makes a confirmation before it deletes any record ) and the executeUpdate method returns the row count of the selected records. anyway when i was deleting from my JTable i first deleted the record from my resultset that was obtained by a SELECT statement in my java pp then deleted it from the DB so it got deleted right away iside my java application, so does deleting record(s) from a resultset that is retrieved using a Statement object generates a DELETE SQL Statement to the db ?
[ October 07, 2006: Message edited by: Mahmoud Hadad ]
 
Wei Dai
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try con.commit() function. It's a known issue of MS Access with jdbc-odbc bridge driver
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic