TSQL CTE в транзакции
BEGIN TRANSACTION
;WITH CTE .....
SELECT.....etc.
COMMIT TRANSACTION
Mister_H
BEGIN TRANSACTION
;WITH CTE .....
SELECT.....etc.
COMMIT TRANSACTION