Hi Team,
In my below SP if the execution failed in between i want to rollback the deleted records.
PFB below sample code snippet for your reference.
Create Procedure [dbo].[Remove_data] @Id
As
Begin
Select @State_ID = Id from [State] where Country_Id=@Id
Delete from City where State_ID=@State_ID
Delete from [State] where Country_ID=@ID
Delete from [Country] where Id=@Id
End