Database options for Delphi hobbyist ?

Posted on 2014-03-17
Last Modified: 2014-03-25
Years ago, I  used to develop freeware programs using Delphi 5 for hobby / gaming use - little assorted database programs that stored assorted information about whatever hobby I had going at the time.

I'd write the program using Delphi 5 Professional and stored the data in Paradox tables.  When someone else wanted the program, they could install the BDE and download the program and data files and be away.

I bought a copy of Delphi XE3 a little while back and have thought about delving into this again - updating some of my old programs just for the sake of learning with the updated tools.

I want to be able to use standard SQL to query the database.

From the point of view of ease of redistribution (I know a few people who would use updated versions of the programs if I ever got around to updating them), what's the easiest DB software to deal with  ?  If someone wanted to play with the updated program, what's the easiest solution for someone else to install so they could use the program ?

The version of XE3 I have supports ODBC (and I think it even has support for some other databases, I think the version of XE3 I have is Enterprise or Ultimate, I'd have to check what it was I bought).

Have not toyed with Dephi much in years (still have Delphi 5 installed and when I need a quick programmatic solution for a problem I still use it) but figured I should use the newer version I went to all the trouble of buying rather than sticking with the old one :)

Thanks in advance for sharing your experiences.
Question by:Steve Wales
  • 3
  • 2
  • 2
  • +4
LVL 37

Accepted Solution

Geert Gruwez earned 100 total points
ID: 39934595
easy depends on what you want to do with it
but if you just need the odd table without wanting to bother about "a database engine" go with sqlite, it uses files for the data and the driver can be embedded in the exe.

and if you want ease of use as having unlimited query power (besides the limit of data size of 10gb) go with oracle express edition
LVL 45

Assisted Solution

aikimark earned 100 total points
ID: 39934623
It's hard to go wrong with Firebird or Interbase.  I spoke with a client running a Delphi app that uses Firebird and there haven't been any problems with either the software or the database for over four years.  These databases remind me of the Ronco Rotisserie -- Set it and forget it.

If you are going to put this data onto a client's machine, the low maintenance and administration requirements make Firebird and Interbase quite attractive for small software developers.
LVL 22

Author Comment

by:Steve Wales
ID: 39934644
Definitely no commercial usage - and as an Oracle professional, Oracle XE is certainly appealing personally, but installation and configuration of Oracle for someone else to use and maintain is probably more trouble than it's worth.

I will definitely look into the other three options presented though.  Thanks!
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

LVL 22

Author Comment

by:Steve Wales
ID: 39934841
Actually, I will throw one other question out related to this.

Do any of the above offer the equivalent to a formatted memo that Paradox had ?  One of the columns in the application I plan on trying to upgrade contained bolded or italicized text at times.
LVL 45

Expert Comment

ID: 39935166
You can store large strings in a Text or nText column in Firebird.  If you limit the length below that, you have a few more variable length character fields from which to choose.  You can store HTML in the field and render the formatted text in a tHTMLviewer component (or equivalent).
LVL 26

Assisted Solution

by:Sinisa Vuk
Sinisa Vuk earned 100 total points
ID: 39935300
Delphi + MS Access database + Ado components for me is easiest solution and very "native", works out of box as is, no bde, no odbc. you don't need ms access installed - there are few freeware tools to create/manage database.
LVL 37

Expert Comment

by:Geert Gruwez
ID: 39935353
formatted memo ?

i use synedit to display formatted text, the database in this case doesn't matter

Expert Comment

ID: 39936208
I've been using embedded Firebird in my hobby project and that works great. The nice thing of firebird embedded is that it can also connect to a server, which makes it very flexible. Most of my users are parents and not aware that they are using a database except for a few system administrators which have installed it in schools and other institutions.
I'm using Unified InterBase to talk to firebird:
LVL 24

Assisted Solution

jimyX earned 100 total points
ID: 39936559
I suggest AbsoluteDB. It's the perfect replacement for BDE.

You may read these articles for additional information.
LVL 19

Assisted Solution

Thommy earned 100 total points
ID: 39939177
I also recommend using SQLite.

Delphi XE3 Architect, Ultimate and Enterprise even provide direct support for SQLite databases.  Just place a TSQLConnection on your form and set property driver to Sqlite

Please have a look a below video tutorial...
Using a SQLite database in VCL and FMX apps
LVL 22

Author Closing Comment

by:Steve Wales
ID: 39954605
Thanks for all for the input.  Started playing with SQLite.  We'll see how that goes.

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
oracle global variables 4 68
select query - oracle 16 100
TEMBEDDEDWB how can i change its user agent ? 8 58
Delphi and Access based Enumeration 9 61
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question