首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

asp使用存储过程输出ntext类型的数据,该怎么解决

2012-03-22 
asp使用存储过程输出ntext类型的数据CREATEPROCEDUREmysp_test@idint,@Contentntextoutputasbegin........

asp使用存储过程输出ntext类型的数据
CREATE   PROCEDURE   mysp_test
@id   int,
@Content   ntext   output
as
begin
    .....................
end
go


提示不能以ntext数据类型作为参数   ????


[解决办法]
use @Content nvarchar(4000)

or return a recordset
eg:

CREATE PROCEDURE mysp_test
@id int
as
select content from tableName where id=@id
go

热点排行