MsSQL Table-Valued Functions - the forgotten $1M Feature

One day I came by the following StackOverflow question: "When would you use a table-valued function?" Adding to what is replied there, I would say that this is a great platform to collaborate with DBAs, yet keep the responsibility boundaries: the developer "sees" a function that returns an entity. From the developer perspective it's absolutely "normal" entity, which can be joined or filtered. But since this is a function, it can receive parameters! The DBA may use them to SELECT from different tables or load data from file system. There is no limits to what can be done, keeping the integration simple and transparent.

Of course ELINQ fully supports them.

Comments

Popular posts from this blog

Hierarchical Query in SQL with C# and Entity Framework Core

Efficient Data Modification With Entity Framework Core

SQL: SELECT DISTINCT on Some Columns