IF  EXISTS(select * from systypes where xusertype>256 AND name = 'GBPARM')
    exec sp_droptype 'UDT_CUSTOMER_NO'
GO

解决方案 »

  1.   

    exec sp_droptype 'UDT_CUSTOMER_NO'
      

  2.   

    有返回直必须用
    EXEC pRO_NAME
      

  3.   

    use master
    go
    IF  EXISTS(select * from systypes where xusertype>256 AND name = 'GBPARM')
        exec sp_droptype 'UDT_CUSTOMER_NO'
    GO
    OR:IF  EXISTS(select * from systypes where xusertype>256 AND name = 'GBPARM')
        exec master..sp_droptype 'UDT_CUSTOMER_NO'
    GO
      

  4.   

    IF  EXISTS(select * from systypes where xusertype>256 AND name = 'GBPARM')
        exec sp_droptype 'UDT_CUSTOMER_NO'
      

  5.   

    use master
    go
    IF  EXISTS(select * from systypes where xusertype>256 AND name = 'GBPARM')
        exec sp_droptype 'UDT_CUSTOMER_NO'
    GO
      

  6.   

    用exec:IF  EXISTS(select * from systypes where xusertype>256 AND name = 'GBPARM')
        exec sp_droptype 'UDT_CUSTOMER_NO'
    GO
      

  7.   

    IF  EXISTS(select * from systypes where xusertype>256 AND name = 'GBPARM')
        exec master..sp_droptype 'UDT_CUSTOMER_NO'
    GO
      

  8.   

    use master
    go
    IF  EXISTS(select * from systypes where xusertype>256 AND name = 'GBPARM')
        exec sp_droptype 'UDT_CUSTOMER_NO'
    GO