Nilas Jensen's Library tagged → View Popular
SQL Server database comparison and synchronization tools - xSQL Software - Download Product
Improving query plans with the SCHEMABINDING option on T-SQL UDFs
-
Improving query plans with the SCHEMABINDING option on T-SQL UDFs










This blog describes how the SCHEMABINDING option specified during creation of T-SQL UDFs may affect query plans involving these UDFs in SQL Server 2005. Armed with this knowledge, you may find that you can dramatically improvement your query performance for free.
Before I jump into the details, let me briefly summarize the take-away: If you are using simple T-SQL UDFs that do not touch any tables (i.e. do not access data), make sure you specify the SCHEMABINDING option during creation of the UDFs. This will make the UDFs schema-bound and ensure that the query optimizer does not generate any unnecessary spool operators for query plans involving these UDFs.
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
