Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Can we use Excel file as a database in java?

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi There,

Can we access Excel file java code as a database?

Thanks in advance!
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can, yes. But you shouldn't, no.

Excel isn't a database. It's a spreadsheet. Accessing it as a database would only lead to trouble. Use the appropriate API to interact with Excel files. Commonly used one is Apache POI HSSF/XSSF.

Alternatively, if your sole purpose is to have an embedded database in your application, then look for JavaDB (included since JDK6), Derby (its predecesor) or Hypersonic. No, MSAccess is not a good alternative, no.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excel as a database

Sorry, couldn't resist :-) It is possible; googling for "excel jdbc" will provide you with lots of starting points.
 
Bartender
Posts: 2658
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<duckingforcover>
On the other hand, this is the very moment in your carreer where you can make the difference.
Suffer the pain to get it done, ignore the voice in the back of your head that is nagging you,
and deliver a smart and well designed interface.
Delivering it might create goodwill that allows you to get your way on other decisions.
</duckingforcover>
 
What are you doing in my house? Get 'em tiny ad!
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic