File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Can we use Excel file as a database in java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Can we use Excel file as a database in java?" Watch "Can we use Excel file as a database in java?" New topic
Author

Can we use Excel file as a database in java?

prathamesh bandivadekar
Ranch Hand

Joined: May 22, 2008
Posts: 43
Hi There,

Can we access Excel file java code as a database?

Thanks in advance!


Prathamesh M.B.<br />Java....only.....
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
Excel as a database

Sorry, couldn't resist :-) It is possible; googling for "excel jdbc" will provide you with lots of starting points.


Ping & DNS - updated with new look and Ping home screen widget
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2476
    
    7

<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>


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we use Excel file as a database in java?
 
Similar Threads
How to create New Excel File
Read data from an excel file to java file
java to excel
Export data to Excel in Websphere Portals
Dynamic table creation based on excel template.