Thanks for your response Ice,
Forgive my ignorance but when does data manipulation become a business rule,
thereby worthy of it's own tier?
For example I believe that using stored procedures I can perform any
business-rule/data-manipulation that our application will need to perform .
This would appear to support a 2-tier argument. And MIcrosoft and IBM
adding CLR to the database appears to me to only enhance that argument.
For me that only leaves the scalability issue to justify a business-logic
layer.
Yes, it is easier to scale application servers more easily, but when is this
an advantage? eg I can calculate the tax on an employee's payroll
transactions for a year and write it back to his employee record. At what
point is loading all 500 transaction records back to the middle tier,
calculating tax on the total and writing it back to the server, going to be
quicker than executing that on the server?
I can sort of see the scalability argument in theory but when it comes to
practice I can't help but wonder how complex my stored procedure is going to
have to be before it executes slower than the total round trips required to
assemble the data in the middle tier for calculation, then sending it back.
To me this seems to be the crux of the argument, and if it is then I would
really like to know how one calculates this extremely important business
decision.
cheers,
Paul.
[quoted text, click to view] "Ice" <ice@nospam.com> wrote in message
news:OTM7jGimDHA.2160@TK2MSFTNGP10.phx.gbl...
> Used stored for data access/data manipulation - that's what they were
> intended. BRs should be implemented in a layer above because programming
> langs are better equiped to handle the recursiveness and rules of BRs
hence
> why MSFT is moving the CLR into SQL Server.
>
> Besides scalability, do you have a lot of custom code? Do clients or
> support personnel need to replace modules?
>
> Finally, its not easy to scale database servers out (you'll have to scale
> up), you can scale out more easily with app servers.
>
> ice
> "Paul Ritchie" <Paul.Ritchie@REMOVEpayglobalREMOVE.comREMOVE> wrote in
> message news:OQcmyjNmDHA.2488@TK2MSFTNGP12.phx.gbl...
> > What do you say to a person who believes that putting logic into stored
> > procedures is not ultimately scaleable?
> >
> > eg He believes the database is the bottleneck and therefore all
> interaction
> > with it should be kept simple so as not to tax the server, with any kind
> of
> > data manipulation logic implemented outside the database in the business
> > logic (tier).
> >
> > cheers,
> > Paul Ritchie.
> >
> >
>
>