Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

What is better to use in perfomance terms, An Function wich make some calculations and return a Table or Store Procedure that make the same and store dates on a permanet Table?

Thanks. :)
Posted

Its a bit of an apples to oranges comparison.

Writing to a table could have performance drawback because of IO issues or table locks, or a number of other reasons.

The function would almost certainly be more performant because it is all in memory. However, it also depends on how the function is written and what is does, what tables, if any, are accesssed.
 
Share this answer
 
A link here.
 
Share this answer
 
Thank You Very Much :) :thumbsup:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900