sql如下(来源于李宏根csdn上的例子):

set nocount on
declare @P1 int, --P1是游标的id
 @rowcount int
exec sp_cursoropen @P1 output,@sqlstr='select * from Customers',@scrollopt=1,@ccopt=1,@rowcount=@rowcount output

exec sp_cursorfetch @P1,16,22,3
exec sp_cursorclose @P1
set nocount off

我的问题是:执行完后我该怎么接收此存储过程执行后的返回的数据?
(这些存储过程为什么在sql2000的帮助里找不到?)
先行谢谢了!

posted on 2004-11-01 13:51  tornado  阅读(687)  评论(0编辑  收藏  举报