Send feedback on this topic.
Teradata.Client.Provider
Rollback() Method



Teradata.Client.Provider Namespace > TdTransaction Class : Rollback() Method
Rolls back the transaction and re-enables the Auto-Commit mode.
Syntax
'Declaration
 
Public Overrides NotOverridable Sub Rollback() 
'Usage
 
Dim instance As TdTransaction
 
instance.Rollback()
public override void Rollback()
public:
void Rollback(); override 
Exceptions
ExceptionDescription
Object is disposed and the transaction has already been committed or rolled back.
The Teradata Database returned an error, or .NET Data Provider for Teradata detected an error.
Remarks
The Rollback method aborts the transaction (unit of work) and forces the TdConnection back into Auto-Commit mode. It also disassociates the TdTransaction from the TdConnection object. The Connection property will return a Null reference after the call to the Rollback method.
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdTransaction Class
TdTransaction Members