D
D
dienerie2021-05-20 10:39:03
SQL Server
dienerie, 2021-05-20 10:39:03

How to cancel a completed update request?

Request completed, updated the wrong fields.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Tsvetkov, 2021-05-20
@dienerie

All changes are in the log ( LDF).

The LDF file contains enough information to revert or undo changes, or even restore the database to a specific point in time.

For example .

C
ComodoHacker, 2021-05-20
@ComodoHacker

ROLLBACK

C
cicatrix, 2021-05-20
@cicatrix

Most often, Borjomi is too late to drink.
Well, you can find out which recovery mode is set
SELECT name,recovery_model_desc FROM sys.databases
and congratulate yourself on moving into the second category of three:
1. People who do not make backups yet
2. People who already do backups
3. People who already check the backups they have made.
In general, on a working database, any update should begin with BEGIN TRANSACTION

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question