sql server - Rollback to a previous save point in T-SQL -


read documentation seems cannot it.

i have transactions this:

begin transaction    statement 1    statement 2    statement 3 commit 

what want this:

begin transaction    if statement 1 fails rollback beginning else create savepoint1    if statement 2 fails rollback beginning else create savepoint2    if statement 3 fails rollback beginning else create savepoint3    if executed commit 

any hints syntax? statements inserts , updates same table , current setup gave me deadlock.

regards,


Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

r - Using `bbmle:mle2` with vector parameters (already works using `optim`) -