DDL as part of a transaction

  • Is DDL, such as index creation, also considered part of a transaction, or is a transaction only a sequence of DML operations? The reason why I ask is that in full recovery mode, the SQL SRVR logs index creation in the transaction log as well. If DDL isn't part of a transaction, then how come it is logged in the "transaction" log? Please clarify.

    Thanks a lot,

    Karim

  • Everything is part of a transaction. That is how the server can recover in between any crashes or reboots and maintain integrity.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply