I know that user defined types are stored in information_schema.domains, but is it possible to get the definitions for types which are of type table type?
To be clear I am looking for the actual table type definition:
e.g. I want to get the column definitions for myTableType
CREATE TYPE myTableType AS TABLE(
Id INT,
SomeValue NVARCHAR(20)
);
To get the list of columns for a user-defined table type, run this. You’ll need to substitute your table name for
some_table_type: