My Love Relationship with Stored Procedures…
Wayne cites a few issues which I respectfully take issue with: Source Control : the problem he cites is an issue with the Source Control that he elects to use – it does not occur with all source control systems. Deployment: this is again an issue tied to the tools (or lack of tools) that you are using. I believe MSDeploy eliminates most of these issues. Security : This issue was not addressed, and having TSQL, especially with MVC creates a much higher risk of vulnerability. True, using parameterized reduces it – but if you are working with a team of any size, this will not be enforced across all code without a lot of effort. It’s easy to scan a project and detect if any command is set to text instead of stored procedure (SP). Normalization of Code : By this I mean that there is just one occurrence of code to get data from the database, an SP. This code may occur in many places in the C# code. Each instance would be coded individually (in differ...