我有一个存储过程:
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