scarydba.com
Execution Plan for a User Defined Function - Grant Fritchey
When you execute a multi-statement user-defined function you may see an execution plan that looks something like this: It appears as if the cost of the UDF is free. This is especially true if you use the UDF in a query with other objects, such as joining it to actual tables. Since the optimizer always […]
Grant Fritchey