I no longer like the classic question “business logic in the database versus code”, but I need some specific reasons to convince the senior development team that business logic in the code is better because it is more convenient to maintain, first of all , I used to have a lot of business logic in the database, because I thought it was the only access point. Maintenance is easy if I was the only one who changed it. In my experience, problems arose when projects became larger and more complex. The initial controls for stored in DB Procs are not as advanced as those for the new IDEs and are not editors. The business logic in the code can scale much better than in the database, this is what I found in my recent experience.
So, just looking through stackoverflow, I found the exact opposite philosophy from my esteemed members:
https://stackoverflow.com/search?q=business+logic+in+database
I know that for any situation there is no absolute, but for this solution asp.net, which will use either a sql server or oracle, for not very high traffic, why should I put the logic in the database?
database oracle sql-server business-logic
MR Aug 10 '11 at 3:00 a.m. 2011-08-10 03:00
source share