/plushcap/analysis/bandwidth/bandwidth-attaining-reusability-in-sql-server-part-i

Attaining reusability in SQL server: part I

What's this blog post about?

Reusability is a key principle in software development, but it can be challenging to achieve when writing T-SQL. User Defined Table Types (UDTTs) and Table Valued Functions (TVFs) are two objects available in SQL Server that can help improve reusability. UDTTs act as templates for tables created in memory, while TVFs return result sets instead of scalar values. Together, these objects enable more programmatic thinking when writing T-SQL statements and allow functions to accept and return data types that the calling process can understand. Additionally, using results sets instead of scalar values does not negatively impact performance.

Company
Bandwidth

Date published
Oct. 15, 2015

Author(s)
Dan Goslen

Word count
734

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.