SQL Server providing the User Defined Table Type, as of my knowledge this is useful when we need to pass parameter to the Stored Proc or Functions as a table values.
Here we can create different data types of columns like INT, VARCHAR etc.
we can create User Type Table in two ways, here I am giving only one type simply
/* Create a user-defined table type */
CREATE TYPE LocationTableType AS TABLE
( LocationName VARCHAR(50)
, CostRate INT )
GO
It would create User Defined Table Type
No comments:
Post a Comment