Simple database application for Windows
Asked Answered
C

20

13

I need to build a simple, single user database application for Windows. Main requirements are independence from windows version and installed software. What technologies (language/framework) would you recommend? My preference for language is the Visual Basic.

EDIT: What about VB.Net and SQL Server Compact Edition?

Charissa answered 22/9, 2008 at 8:1 Comment(0)
S
18

I would recommend Sqlite. It's completely self-contained, and public domain so there are no license issues at all.

Sienese answered 22/9, 2008 at 8:3 Comment(0)
D
11

Single user or multi user?

For single user, the answer would be SQLite

For multi user (or multithread), try MySQL or PostgreSQL.

Dolley answered 22/9, 2008 at 8:4 Comment(0)
F
7

Since your requirement is a windows based application i would suggest that you go with sql server 2005 express edition which is a free tool, but with certain small limitations. you can upgrade to a bigger version when you go with a paid version.

There are other DB engines like SQL Lite or FireBird, choose them if the support and growth options they provide are good enough for you

Additionally, Visual Basic is eof lifed. VB.NET might be a better windows based platform currently. It would give a better platform / features to start with and when you want to expand the talent you have working on the project, i assume .NET talent might be more available than programmers who want to work with a dead language.

Ferebee answered 22/9, 2008 at 9:13 Comment(0)
G
3

duplicate of What options are there for a quick embedded DB in .NET?

I'll repeat my answer from there:

"Or theres Esent, the built in database that exists in every copy of windows. Read about it here: http://ayende.com/Blog/archive/2008/12/23/hidden-windows-gems-extensible-storage-engine.aspx" and http://www.codeplex.com/ManagedEsent

Geostrophic answered 24/11, 2009 at 18:31 Comment(0)
H
2

FireBird SQL server will be thing of choice. It can be used in both embedded and multiuser mode like traditional databases. It implements many of the SQL standards and has strong community base. It is available for Windows, Linux, Solaris, OS X, HP-UX

Hocuspocus answered 22/9, 2008 at 8:1 Comment(0)
K
2

SQLite will work for a local desktop application. If you want several users, a few gigas of data, and multiple connections I would use mysql or Firebird.

http://www.mysql.com/ http://www.firebirdsql.org/

Keelson answered 22/9, 2008 at 8:12 Comment(0)
C
1

As mentioned, SQLite is a great single-user database. This page has VB/SQLite examples. Once concerns is that SQLite parses foreign key constraints, but does not enforce them. You can use this code to generate "foreign key triggers" for SQLite, thus gaining an easy to use database with FK constraints.

Depending on how demanding your database needs are, though, you might want to consider MS Access.

Crossbill answered 22/9, 2008 at 10:8 Comment(1)
Update: As of version 3.6.19, SQLite supports foreign key constraints [sqlite.org/faq.html#q22].Eggshell
A
1

I used SQL Server Compact Edition. It's like sqllite. A single SDF file accessed using ADO.NET. You can develop your application using Visual Basic .NET and manage you database (add tables, columns, constraints, etc...) using Visual Studio.

Augmentation answered 22/9, 2008 at 10:25 Comment(0)
H
0

SQLite may be what you are looking for. http://www.sqlite.org/

Hermaphroditism answered 22/9, 2008 at 8:3 Comment(0)
C
0

Depending on your needs for the application.

You could use SQLLite which is a very nice database with no installation required.

You could also use Microsoft SQL Server: SQL Server Compact 3.5.

Both are free!

Cathern answered 22/9, 2008 at 8:7 Comment(0)
H
0

Well, assuming you don't have any prior experience...

You need some kind of persistence storage (for example a database) and a client. For the storage you could use almost anything. For example you could create your DB in MS Access and just ship it as a file, using ADO to access it. Other options are MS SQL Express edition (comes pre-installed on some machines or could be installed for free) and plenty of open source databases like SQLite

For the client side you could not go wrong with VBScript and ADO (using OLE DB drivers). They come with every Windows installation since Dark Ages, you will have plenty of references/tutorials/answers online. A drawback: no UI to speak of, so you'll have to build a command line interface (which was for a 'simple' application).

If you want to build a UI I would suggest using .NET WinForms. The overhead will be substantially bigger but .NET is now installed on all XP/Vista machines and even if it is not you could always install the framework with you application.

Hodge answered 22/9, 2008 at 8:7 Comment(0)
M
0

It's not quite clear from your post whether you want a web application or not.

For a web application, MySQL works effectively on the Windows platform. You also have nearly limitless options for development environment including, PHP, Ruby on Rails, Django, and .Net.

If you are looking at a desktop application, MS Access might be suitable ... incredible easy for simple applications.

Morphophonemics answered 22/9, 2008 at 8:11 Comment(0)
S
0

If you want to build application that can move to other pc easily,I prefer Microsoft Access it is small database easy to use and no need to install.It suites for application like Addressbook,mini crud system.

But if you want to develop enterprise database system you should use MySQL instead.

Shipping answered 22/9, 2008 at 8:24 Comment(0)
L
0

I do not understand what you mean with "independence form [...] installed software". You ever need at least the DBMS installed as well as one client or user interface.

I recommend using MS Access. It is easy and cheap for simple, single user tasks and rapid prototyping development. Only development version have to be bought ("normal" Access) to create DBs. Runtime version of Access 2007 can be downloaded free of cost from Microsoft Homepage - for using only the database you created.

Also it combines DBMS and GUI frontend in same tool.

Lidstone answered 22/9, 2008 at 8:37 Comment(0)
S
0

Dare I mention MS Access...?

Sperm answered 22/9, 2008 at 9:25 Comment(1)
Sure, as long as you are willing to face the consequences.Nighttime
L
0

If you are looking for small footprint (up to a few MB) and easy deployment (end-user should only install your application to get it working), then your options are SQLite and Firebird embedded.

Of those two, I'd pick Firebird any time, because of it's full support for SQL (you can't, for example, drop a column in SQLite), ACID compliance, and ability to go client/server without any changes (just change the connection string from embedded to server) to the code if you ever decide to let multiple users work on the same database.

Not to mention that you can use full server to develop (which means your application and database administration tool can be connected to database at the same time).

Lobbyism answered 22/9, 2008 at 10:54 Comment(0)
G
0

I'm successfully using Turbo Delphi (free for commercial and no commercial use) + ZeosLib (zeos.firmos.at).

The only things you need to distribute with your .exe are the database client dlls (no need to install the client, just put the dlls in the same directory).

Greenling answered 22/9, 2008 at 12:4 Comment(0)
G
0

Would Kexi work?

Girardo answered 24/11, 2009 at 18:28 Comment(0)
S
0

I can recommend from personal experience "My Visual database" free, no code, no sql, just drag and drop.

http://myvisualdatabase.com/

Spider answered 23/1, 2014 at 20:46 Comment(0)
T
-1

Best Option would be to create a Win32 native application using Delphi and use SQLLite as the database.

Reason being Delphi can produce native win32 applications without any other product being installed on the machine.

Thomasinathomasine answered 22/9, 2008 at 9:54 Comment(1)
Delphi is cool, and you can indeed create dependency-free native win32 apps with it. However, I don't think it's a good idea to steer a new programmer towards Delphi, when they could use a project like this to improve their skills in a more mainstream programming environment.Cyclometer

© 2022 - 2024 — McMap. All rights reserved.