Results 1 to 7 of 7

Thread: Design Advice

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

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

  2. #2
    Hyperactive Member goatsucker's Avatar
    Join Date
    Dec 2002
    Location
    Leeds, England
    Posts
    283
    Is this a Client-Server system or will it be multi tier?
    After all "Rust Never Sleeps"

  3. #3

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    Thanks for replying....it will be a client /server system!!
    Last edited by holly; Jan 15th, 2003 at 10:55 AM.
    ** HOLLY **

  4. #4
    Hyperactive Member goatsucker's Avatar
    Join Date
    Dec 2002
    Location
    Leeds, England
    Posts
    283
    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"

  5. #5

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    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 **

  6. #6
    Hyperactive Member goatsucker's Avatar
    Join Date
    Dec 2002
    Location
    Leeds, England
    Posts
    283
    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"

  7. #7

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721
    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
  •  



Click Here to Expand Forum to Full Width