• 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 ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Converting data in excel sheet to a ms-access database programmatically

 
Ranch Hand
Posts: 75
Eclipse IDE AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on an Online examination project in j233 in which i want to keep a functionality that faculty can upload a question bank.He would upload an excel sheet from which data would be transferred in my access table.
Please suggest me way so that i can implement this functionality.
Am i going right

Thank u.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A library like Apache POI can read Excel files. Then you'd use the JDBC API (via an appropriate driver for your DB of choice) to insert the data into the DB.

This being a web app, Access would probably not be a good choice, though - the JDBC/ODBC bridge driver is buggy, not maintained, and not thread-safe. It will also be removed from the JRE in Java 8. A commercial driver would be a better alternative, or -of course- a proper multi-user DB like MySQL, PostgreSQL, Derby etc.
reply
    Bookmark Topic Watch Topic
  • New Topic