Tuesday, March 09, 2004 1:15 PM
szurgot
Disconnect in programming with SqlServer Storerd Procedures
I'm working with a system (that I didn't design) that has a good deal of business logic in the database server. While it makes a lot of sense from a performance perspective, it really makes it hard to program. Several functions update different parts of the same table, and now, in order to inject logic into the database, you have to add it to several stored procedures or (in a last ditch effort) update triggers. It really sucks that you can partition stored procedures, or create Objects to manipulate the database. (I know that Yukon will help somewhat by allowing Stored Procedures written in C# or VB, but it still doesn't seem to address the larger disconnect)
How do others handle this problem? Business logic in code? Naming schema?
Filed under: .NET