求助高手
shto 2000-03-30 10:09:00 在DELPHI中有一个关于SQL SERVER的问题请教
以下为SQL SERVER的存储过程:
CREATE proc RefreshNo
as
begin tran
declare cur1 cursor
for
select 序号 from table1
open cur1
fetch next from cur1
while @@fetch_status=0 begin
update table1 set 序号=5 where current of cur1
fetch next from cur1
end
close cur1
deallocate cur1
commit
为什么在DELPHI 5 中使用QUERY控件执行该存储过程没有出错信息,而
在SQL SERVER中查看TABLE1表,序号没有更改。
但在Sql SERVER中执行该存储过程就能生效。
请各位大虾救命