Skip to main content
2 of 2
deleted 46 characters in body
Tony Hinkle
  • 8k
  • 1
  • 22
  • 46

What events still occur within a transaction that gets rolled back?

Is it true that all data modifications are undone when the transaction they are a part of gets rolled back?

For example if a cursor that just executed a stored procedure 100 times that updated a table on each iteration, would all those updates get rolled back?

Would a DDL statement get rolled back?...such as DROP TABLE or CREATE VIEW? What about DROP DATABASE?

I know certain statements still execute though like PRINT "MESSAGE".

I'm just trying to get an idea of what kinds of events still occur.

J.D.
  • 39.5k
  • 12
  • 60
  • 134