K
K
krka922019-12-13 12:08:41
SQL Server
krka92, 2019-12-13 12:08:41

How to ensure that the data is unchanged during data retrieval?

MS SLQ 2014.
I am generating a report. During formation I address to different tables.
Also, while I am generating a report, the data may change, but I need the data at the time the report is generated.
What level of isolation should be applied? And what should be done in general so that when someone else changes the data in the tables, I do not see these changes?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-12-13
@krka92

The SNAPSHOT isolation level will suit you.
https://docs.microsoft.com/en-us/sql/t-sql/stateme...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question