Hello,
I have an inline function and it is in the same sql script with some other begun transactions.
At the end of the last one, which is the inline function in this case, I have rollback command, but when executing the script I get an error "Cannot roll back inlinefTransaction. No transaction or savepoint of that name was found."
DECLARE @TransactionName varchar(40) = 'inlinefTransaction';begin tran @TransactionName
SELECT * FROM [dbo].[jsp](
N'S1',
N'P1')
ROLLBACK TRAN @TransactionName;
GO
Can anybody help me please what I am doing wrong?
Thanks