cancel
Showing results for 
Search instead for 
Did you mean: 

temporary transaction specific snapshot isolation

08-01-2017 7:21 PM
2415 views 4 comments
SAP Managed Tags
Subscribe

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.

Accepted Solutions (0)

Answers (0)