I have a type like this
CREATE TYPE mytabletype AS TABLE
(
a int NOT NULL PRIMARY KEY,
b int NOT NULL,
c int NOT NULL
)
I want to create either a tabletype or a table like this
create type mytabletype2 as table
(
a int not null primary key,
b mytabletype
)
But SQL Server 2016 does not like the line b mytabletype
- any workaround or tricks to overcome that?