This question is locked. New answers and comments are not allowed.
Hello,
So what I'm reading is that I cannot have a stored procedure defines an explicit transaction as such:
create procedure CreateSomeRecords
(
. . .
)
as
begin transaction
begin try
insert into X (..) values (..)
insert into X (..) values (..)
commit transaction
end try
begin catch
rollback transaction
insert into errorlogs (..) values ( .. sql error info .. )
end catch
My app would call this function from within the OpenAccess context. I read that OpenAccess wraps its request around a transaction, so stored procedure transactions don't work. Is that correct? I couldn't find anything definitive, so I'm posting this question directly.
Thanks.
So what I'm reading is that I cannot have a stored procedure defines an explicit transaction as such:
create procedure CreateSomeRecords
(
. . .
)
as
begin transaction
begin try
insert into X (..) values (..)
insert into X (..) values (..)
commit transaction
end try
begin catch
rollback transaction
insert into errorlogs (..) values ( .. sql error info .. )
end catch
My app would call this function from within the OpenAccess context. I read that OpenAccess wraps its request around a transaction, so stored procedure transactions don't work. Is that correct? I couldn't find anything definitive, so I'm posting this question directly.
Thanks.