Subject Re: [firebird-support] Best place for rules: Front end or DB?
Author Martijn Tonies
> What is the perceived wisdom about where to put business rules for a
> simple app? (Into the database or the front end?)
>
> I'm planning a commercial Win32 (Firebird) database application which
> will mainly be used as a single user standalone program, with a small
> percentage of users using a networked workgroup version, so this is
> unlikely to ever need 3 tier architecture.
>
> Is it better to put maximum "intelligence" into the DB in the form of
> referential rules, sql procedures and triggers etc, or should this be
> mainly in the (Delphi)front end?
>
> I'm concerned about:
>
> 1. Protection of the intellectual property.
> 2. Ease of design & maintenance.

Put at least as much rules inside the database needed to avoid
(logically) corrupt data.

Depending on your preferences, the rest is a bonus.

I for one put as much in it as possible ;-)

Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com