sql - If I KILL(SPID), what happen the running transaction? -


i have procedure, running @ 1 spid. now, found query running slow. in proc update/insert going on. if kill session, happen?

sql server stop executing query , rollback open transactions. rollback undo changes haven't been committed. since sql server adheres acid principle, shouldn't able leave database in bad state, killing spids. isn't couldn't leave data in bad state, i.e. not wrapping multiple operations in transaction enforce consistency upon failure.

https://msdn.microsoft.com/en-us/library/ms173730.aspx


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

gradle error "Cannot convert the provided notation to a File or URI" -