Source Code:
https://github.com/softwareNuggets/SQ...
SQL Server User Defined Table Type.
Table-Valued parameters used in a Stored Procedure.
How to define a User Defined Table type in SQL Server.
User defined table type
table-valued parameters
user-defined table type
how to pass tabled-valued parameters
How to define a user-defined table type:
a) define a user-defined table type
b) how to populate this object
1) load table with records, just like as-if a real table
2) follow the same rules as loading a real table
3) use the same data types
c) how to pass a User-Defined Table Type as a parameter into a stored procedure.
So TEAM, I made this video for you, because learning how to use a USER-DEFINED TABLE TYPE, is key for you to know to become a great SQL Programmer. I truly hope, you will be able to implement what you have learned here, cutting down your struggle time, and more focused to creating a solution using SQL.
SQL Server user-defined data type tutorial
User-defined data types in SQL Server example
Creating custom data types in SQL Server tutorial
SQL Server custom data types explained
Using UDDT in SQL Server tutorial
Time Line:
00:00 begin
00:09 create tables and User-Defined Table Types
01:43 create a stored procedure. both parameters are of type UDTT (user-defined table type)
05:27 - run the app. see how this feature works in a real working example.
#softwareNuggets, #udtt, #userDefinedTableType , @softwareNuggets