RemoveTransaction()
- Last UpdatedNov 25, 2015
- 1 minute read
Use the RemoveTransaction() method to instruct the SQLData Script Library to remove all references to the aaDBTransaction object referred to by TransactionID, release all resources used by the object, and clean up all references to the object in memory.
Syntax
void RemoveTransaction(
string TransactionID)
Parameters
TransactionID
The unique ID, generated internally by the SQLData Script Library. See aaDBTransaction.GetID() on page 89.
Remarks
Internally, the SQLData Script Library ensures that all aaDBCommand objects explicitly added to this object are removed.
You must call this method if you previously requested the transaction ID. Otherwise, the memory cannot be released until the engine process is shut down.
Do not keep this command object in memory, especially when it is associated with a large dataset.