解决方案 »

  1.   

    ---用户定义数据类型
    create type postcode
    from varchar(6) null  --创建用户定义数据类型
    go
    select * from information_schema.domains ----获取用户定义数据类型信息
    select * from information_schema.column_domain_usage ---查看用户定义数据类型的使用情况
    drop type postcode ---删除用户定义数据类型这样去试试。
      

  2.   

    非常谢谢版主大人,系统是用的SQL2000,升级到2005才有这个问题。可能是2005不支持在临时表使用自定义类型,我再试试。
    临时表貌似用不了
    你建个非临时表看看