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.
Comments
Post a Comment