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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -