我遇到的问题是:触发器中不能使用 NTEXT 类型的字段====这还真没听说过

解决方案 »

  1.   


    ntext类型的更改参考如下:--更新text字段的值
    create table PE_Soft(SoftIntro text,ChannelID integer) 
    insert into PE_Soft 
    select  'aaa ',1004 
    union all 
    select  'bbb ',1003 
    union all 
    select  'ccc ',1002 declare @ptr binary(16) 
    select @ptr=textptr(SoftIntro) from PE_Soft where ChannelID=1002 
    updatetext PE_Soft.SoftIntro @ptr null 0  'testing ' 
    select * from PE_Soft drop table PE_Soft
      

  2.   

    content 用varchar 或nvarchar不可以吗,设大一些?或者别放在触发器进行,放在一般语句里,或存储过程里。