on 2017 Aug 01 6:21 PM
I have 4 SQL statements: select update insert (optional depending on application logic) select
I would like these 4 DML statements to participate in a single snapshot isolated transaction. Once a commit is issued then snapshot isolation should no longer apply.
The question I have is, how can I specify snapshot isolation for the given transaction only, until a COMMIT is issued.
The documentation states "SET statement [T-SQL] Sets database options for the current connection in an Adaptive Server Enterprise-compatible manner."
which seems to suggest that it is set for the existing connection, not transaction. The BEGIN TRANSACTION does not have an option to set the isolation level, which is what PostgreSQL allows for. Oracle allows for a similar feature with SET TRANSACTION.
Then once a COMMIT isissued they both default back to what the server setting is, which is READ COMMITTED.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.