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

解决方案 »

  1.   

    你好。 ntext类型跟text一样吗?
      

  2.   

    ntext、text 和 image
    用于存储大型非 Unicode 字符、Unicode 字符及二进制数据的固定长度和可变长度数据类型。Unicode 数据使用 UNICODE UCS-2 字符集。ntext可变长度 Unicode 数据的最大长度为 230 - 1 (1,073,741,823) 个字符。存储大小是所输入字符个数的两倍(以字节为单位)。ntext 在 SQL-92 中的同义词是 national text。text服务器代码页中的可变长度非 Unicode 数据的最大长度为 231-1 (2,147,483,647) 个字符。当服务器代码页使用双字节字符时,存储量仍是 2,147,483,647 字节。存储大小可能小于 2,147,483,647 字节(取决于字符串)。image可变长度二进制数据介于 0 与 231-1 (2,147,483,647) 字节之间。