transaction

  • In one of my stored procedure I am Inserting the data into 3 tables.

    BEGIN TRANSACTION trans1

    Insert into tbla(column1)

    VALUES(@variable1)

    Insert into tblb(columna)

    VALUES(@variable2)

    Insert into tbla(columnx)

    VALUES(@variable3)

     

    IF @@ERROR<>0

    BEGIN

    ROLLBACK TRANSACTION tran1

     

     

  • sorry guys this is an incomplete post.

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

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