|
-
Jan 15th, 2003, 10:35 AM
#1
Thread Starter
Fanatic Member
Design Advice
hi
I am developing a system using vb & SQL - I was wondering how I should tackle the design stage - to simplify things:
a) would i be best using VB purely for the interface?
b) Use SQl to implement all business rules?
c) implement business rules using VB?
any help would be greatly appreciated!!
** HOLLY ** 
-
Jan 15th, 2003, 10:45 AM
#2
Hyperactive Member
Is this a Client-Server system or will it be multi tier?
After all "Rust Never Sleeps"
-
Jan 15th, 2003, 10:48 AM
#3
Thread Starter
Fanatic Member
Thanks for replying....it will be a client /server system!!
Last edited by holly; Jan 15th, 2003 at 10:55 AM.
** HOLLY ** 
-
Jan 15th, 2003, 11:01 AM
#4
Hyperactive Member
I would think that some of your business rules can be implemented in the SQL Server layer by unique indices/Primary key and Foreign key Constraints. These are a robust way of keeping your database tidy and give no performance hit, so use them as much as you can.
You can also use triggers in the database layer, but these are somewhat subjective. They are reactive rather than proactive methods of keeping business rules (in that they will roll back any invalid database transactions rather than prevent them in the first place). As such they can use up resources, but judicious use gives you a very robust database. Any exceptions arising from the database level can be easily transferred back to the client (including transactions rolled back by triggers)
I fell that business rules that cannot be implemented in the database should be in your client in VB.
After all "Rust Never Sleeps"
-
Jan 15th, 2003, 11:07 AM
#5
Thread Starter
Fanatic Member
so lets see if I've got this right - youre saying, the best way is
to implement as many business rules into SQL and if that is not
possible place them into VB??
Thanks in advance for all your help
** HOLLY ** 
-
Jan 15th, 2003, 11:18 AM
#6
Hyperactive Member
Pretty much. With the exception of triggers it is better to implement rules in SQL rather than elsewhere. It is much better to encapsulate your rules with your data. It comes in handy if you wanted to change/upgrade your front end while keeping your database.
It has the added advantage of making a lighter VB application which is quicker to install and start up.
Last edited by goatsucker; Jan 15th, 2003 at 11:23 AM.
After all "Rust Never Sleeps"
-
Jan 15th, 2003, 11:23 AM
#7
Thread Starter
Fanatic Member
Goatsucker., Thanks for all your advice...its very much
appreciated...
** HOLLY ** 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|