TSQL CTE em uma transação
BEGIN TRANSACTION
;WITH CTE .....
SELECT.....etc.
COMMIT TRANSACTION
Mister_H
BEGIN TRANSACTION
;WITH CTE .....
SELECT.....etc.
COMMIT TRANSACTION