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 Teradata Database returned an error, or .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 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