November 26, 2010 at 10:58 am
Hi,
Recently i faced a question in an interview, which one is better regarding performance -
Inline Table valued function or scalar function (both are returning same output).
Can anyone help in this regard.
Thanks
Samrat Sen
November 26, 2010 at 12:09 pm
Have you tried google? There are a large number of blog posts written on that exact topic.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
November 26, 2010 at 1:00 pm
sam_mastermind (11/26/2010)
Hi,Recently i faced a question in an interview, which one is better regarding performance -
Inline Table valued function or scalar function (both are returning same output).
Can anyone help in this regard.
Thanks
Samrat Sen
Although you'll find a lot of posts, etc, that will tell you, there's no better replacement than to try it yourself. You'll never forget that way.
The other thing I'll tell you is that "It Depends". There are a lot of "rules of thumb" (and the question they asked you is one of those) where one way is better than the other 95% of the time. That also means that the other 5% of the the time, the other way is actually better.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply