Comments (2)
Hi, @JordanMarr . I'm not entirely sure, but I think the issue is with the GO
statement, which is not really a T-SQL statement, but a batch terminator. And, when you issue that, the script is committed even though the transaction is rolled back.
I think the behaviour is similar to what is described here, if you set XACT_ABORT ON in T-SQL: https://www.codejourney.net/t-sqlssms-transaction-rollback-in-scripts-with-xact_abort-on-go-statements-and-syntax-errors/
Could you try removing the GO
statement from your scripts, and see if it works as expected then?
from grate.
Thanks for the link. After reading the blog post, I would agree that this issue was likely caused as a result of the way SQL Server reacts differently to runtime errors vs design time errors.
from grate.
Related Issues (20)
- Action Dry Run prompts for 'press enter' HOT 1
- --folders ignores 2nd++ folder HOT 3
- Request: improved PostgreSQL database creation experience HOT 7
- Error in message when running dryrun
- Best practice for deploying SQL Agent Jobs HOT 1
- CREATE INDEX CONCURRENTLY cannot be executed within a pipeline (on Postgresql) HOT 8
- Run Grate from code HOT 5
- RoundhousE Feature | SearchAllSubdirectoriesInsteadOfTraverse HOT 5
- Azure SQL migrations with Managed Identity not working after 1.3.0 HOT 3
- MySQLConnector Hangs when connecting to MySQL 5.7 for DB Open() HOT 2
- Inconsistent script type for RunFirstAfterUpdate folder in documentation HOT 2
- Scripts using postgresql dollar-quoted strings fail in version 1.5.1 HOT 11
- Use Npgsql Code for Parsing PostgreSQL SQL Statements HOT 17
- Unable to connect to MySQL 8.0.30 using grate 1.5.3 HOT 5
- Silent flag doesn't work on version 1.5.3 on Linux HOT 6
- Ability to programmatically migrate HOT 9
- A noop run creates new entries in `Version` table HOT 1
- Migrating from Roundhouse, MySQL text_of_script column size too small HOT 2
- Documentation to support non-DotNet users HOT 2
- Unhandled exception trying to login to Azure SQL database HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grate.