Home Forums SQL Server 2008 T-SQL (SS2K8) Does a "Begin... End" in a While loop act as a transaction? RE: Does a "Begin... End" in a While loop act as a transaction?

  • Jason

    You're only running one ALTER INDEX statement at a time, so it doesn't make any difference whether you use an explicit transaction or not. I think what Lynn was asking in the other thread was whether the whole WHILE loop was enclosed in an explicit transaction.

    John