Stop (pause) a transaction or exclude tsql code

  • Hi,

    I have a long sql code with a transaction.

    Inside the transaction there is a statement DBCC operation.

    The problem is that into a Transaction is not possible to perform a DBCC operation.

    How can I do?

    Is there a way to stop (pause) the transaction and the resume it or exclude the piece of code from transaction ?

    Thank

  • I don't think so. You'll have to change your logic to move your DBCC statement out of the transaction somehow.


  • what is the dbcc, maybe write an sp that duplicates the dbcc function?


    Cheers,

    Todd

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

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