CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2013

    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?


  2. #2
    Join Date
    Jan 2006
    Fox Lake, IL

    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.

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)