I have a transaction. The code is
set implicit_transactions on
select getdate()
begin transaction
begin transaction
select * from price p1, product p2 where p1.product_id = p2.product_id
rollback
delete from PRODUCT where product_id = 100871
select 100860,2,3,getdate(),null from PRODUCT
commit
drop table price
The question is how many transactions were started during the execution of the request? As I understand it, some people refer to this as a "nested transaction" although this is not official terminology.
So, from the server's point of view, were there 2 transactions started, or 1?