T-SQL DROP TYPE IF EXISTS [duplicate]
IF type_id('[MySchema].[tProjectType]') IS NOT NULL DROP TYPE [MySchema].[tProjectType]; CREATE TYPE [MySchema].[tProjectType] AS TABLE ( Id INT , IsPrivate BIT , IsPublic BIT );