如题
类似oracle的create or replace type ... as object

解决方案 »

  1.   

    用户定义自己的数据类型用存储过程sp_addtype
      

  2.   

    sp_addtype [@typename =] type, 
        [@phystype =] system_data_type 
        [, [@nulltype =] 'null_type'][@typename =] type 
    Is the name of the user-defined data type. Data type names must follow the rules for identifiers and must be unique in each database. type is sysname, with no default. 
    [@phystype =] system_data_type 
    Is the physical, or Microsoft® SQL Server™-supplied, data type (decimal, int, and so on) on which the user-defined data type is based. system_data_type is sysname, with no default, and can be one of these values: