Can I roll back changes from Utils.ExecuteBlock?
spireite
Posts: 25
I have a system where I can optionally apply a SQL script before or after (or both) the the compare takes place and differences applied. If my postcompare script fails, can I rollback the changes made by Utils.ExecuteBlock method?
Thx
Thx
This discussion has been closed.
Comments
Do you mean rollback the sql compare generated change script if your script fails, or rolling back the changes made by your script?
Support Engineer
Red Gate Software
If you the script succeeds but you want to roll it back then you need to use the script that was generated for the migration in the opposite direction. If you're migrating A->B then the script generated for the B->A direction will be the roll-back script.
Red Gate Software Ltd