January 5th, 2014, 02:36 PM
Stored Procedures of a database, or Table Functions in C#/.NET?
I currently use table functions in c#/.net for analytical table operations like aggregation, distribution, allocation, row-wise formulas, subtable transformation, etc.
Once I've implemented a function tree (which represent a quantitative model) using table functions, with data tables as input parameters, I can simulate the whole tree by varying some input values. I use such simulations for scenario analysis and optimizations.
A colleague advised me to use stored procedures instead of table functions for a better performance and scalability.
My first question is, why should I use stored procedures instead of table functions? What are their advantages over table functions?
Second question: Can I find a stored procedure library for analytical table operations?
January 5th, 2014, 10:45 PM
Re: Stored Procedures of a database, or Table Functions in C#/.NET?
stored procedures have use when users can present data. your app doesn't need to validate fields. the SP just won't run without the right ones. Prevents against SQL Injection, for instance. Probably wouldn't help with math calcs, unless you have a public site, or really don't like validation routines.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!