我有一个存储过程:
create procedure sp_PaymentForm_getAll
as
begin
begin TRAN
select * from PaymentForm
WAITFOR DELAY '00:00:10'
SELECT * FROM PaymentForm pf where pf.ID = 1
if @@error <> 0
begin
rollback
return
end
commit
end
我在ADO.NET中调用此存储过程,但ADO.NET获得第一次选择的结果
SELECT * FROM PaymentForm
我想获得第二个SELECT
的结果:
SELECT * FROM PaymentForm pf where pf.ID = 1
答案 0 :(得分:4)
答案 1 :(得分:0)