I am using SQLPackage.exe utility together with Database project's publish profiles to run changes to the SQL Server database.
From my understanding, this is the deployment process:
Pre-Deployment Script
Main Deployment
Post-Deployment Script
I have "Include transactional scripts" option checked in the publish profile advanced settings, however, that seems to apply to Main Deployment section only.
My questions is: If Main deployment fails, is Pre-Deployment script committed? As well as, if Post-Deployment script fails, does Pre-Deployment changes and Main Deployment changes are being committed?
Is it possible to make publish script "Atomic" - Everything succeeds or fails as a single unit?
Thank you.