Non è possibile annullare il cambiamento, se è stato eseguito al di fuori di un BEGIN TRANSACTION/ROLLBACK. Questo è il motivo per comincio qualsiasi tipo di dati di produzione aggiornare con:..
BEGIN TRANSACTION
-- report the bad or undesired data condition before-hand
SELECT ...
-- change the data
INSERT/UPDATE/DELETE ...
-- ensure we changed a reasonable number of records; may not be accurate if table has triggers
SELECT @@ROWCOUNT
-- get the data condition afterwards and be sure it looks good.
SELECT ...
-- always start with this enabled first
ROLLBACK
-- don't do this until you are very sure the change looks good
-- COMMIT
Martin Smith ha sottolineato this excellent post by Brent Ozar on dba.stackexchange.com su questo argomento In modalità di recupero completo, è possibile esaminare i file di log per vedere cosa è cambiato
Inoltre, come Oded ha sottolineato, se si avere dei backup, non è difficile per tornare ai dati originali. È possibile ripristinare il backup da qualche parte e copiare i dati originali.
fonte
2012-09-20 18:12:20
Ripristina dal backup. – Oded
[Vedere la risposta qui] (http://dba.stackexchange.com/a/998/3690) –
Non c'è Ctrl + Z in SQL Server. –