The syntax of the CREATE TYPE statement is as follows: : Create Type « Data Types « SQL Server / T-SQL Tutorial






CREATE TYPE [type_schema_name.] type_name
      {[FROM base_type [(precision [,scale])] [NULL|NOT NULL]]
       |[EXTERNAL NAME assembly_name [.class_name]]}

10> CREATE TYPE zip
11>   FROM CHAR(5) NOT NULL
12> GO
1>
2> drop type zip;
3> GO








5.6.Create Type
5.6.1.The syntax of the CREATE TYPE statement is as follows:
5.6.2.Creating and Using User-Defined Types
5.6.3.Identifying Columns and Parameters that Use User-Defined Types
5.6.4.Now see what parameters reference the AccountNBR data type
5.6.5.Dropping User-Defined Types