Microsoft SQL Server creating a UDT with a single int column that is also a primary key


Example

CREATE TYPE dbo.Ids as TABLE
(
    Id int PRIMARY KEY
)