Send feedback on this topic.
Teradata.Client.Provider
Commit Method



Teradata.Client.Provider Namespace > TdTransaction Class : Commit Method
Commits the transaction and re-enables the Auto-Commit mode.
Syntax
'Declaration
 
Public Overrides NotOverridable Sub Commit() 
'Usage
 
Dim instance As TdTransaction
 
instance.Commit()
public override void Commit()
public:
void Commit(); override 
Exceptions
ExceptionDescription
Object is disposed and the transaction has already been committed or rolled back.
The Advanced SQL Engine returned an error, or the .NET Data Provider for Teradata detected an error.
Remarks
The Commit method commits 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 Commit method.
Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdTransaction Class
TdTransaction Members