The present invention describes an efficient and fast framework for
implementing table-valued functions (TVF's) in a relational database
server. The framework provides desirable extensibility properties and has
the ability to minimize performance degradations by integrating tightly
with the optimization infrastructure in a query processor. The present
invention also enables a managed execution environment (MEE) such as the
Common-Language-Runtime (CLR), to efficiently and dynamically extend the
logic of the database engine with user-supplied code.