Rollback Trans

  • I am trying to test performance for a store proc which does many inserts and updates on the tables.

    I want to test it but dont want to affect anything on the databases, ofocurse its a test environment but still if I have my proc in a transaction and rollback it at the end, will i succeed in inserts,updates getting rolled back to the original position.

  • Yes, you can be confident that your inserts, updates and deletes will be reversed assuming your using a script something like:

    BEGIN TRAN

    EXEC your_proc

    ROLLBACK

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

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