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 Advanced SQL Engine 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
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTransaction Class
TdTransaction Members