I came across the debate of CLR function may be faster than T-SQL scalar function for some people or the other way round for another group of people.
And I also read about comparing CLR function with CLR stored procedure and I learn that CLR function is faster than CLR stored procedure. Can someone explain to me, in technical, why a CLR function is faster?
I'm new to CLR and currently developing a CLR stored procedure in C# to be used in SQL Server. The CLR execution basically consume 0 seconds even after many tried. I haven't tried implementing into an actual T-SQL stored procedure yet but I need to do that to produce the expected result. So I want to understand the execution part and determine which method to use