TTSEndTransaction
Ends an explicit transaction and returns a transaction reference number (For cross-platform functionality, see Developing NLMs with Cross-Platform Functions ( NDK: NLM Development Concepts, Tools, and Functions) and call call NWTTSEndTransaction.)
#include <\nlm\nit\nwtts.h>
int TTSEndTransaction (
long *transactionNumber);
A transaction is not necessarily completed to disk when this function returns. If the server fails before all transaction updates are written to disk, the transaction is backed out when the server is rebooted.
TTSTransactionStatus verifies a successful transaction completion to disk; or, if transaction tracking is disabled, the reference number can used to determine when the transaction is completely written to disk.
This function releases the following physical record locks:
For explicit transactions, the transaction is completed and any locks being held are released.
If implicit transactions are enabled and the number of logical or physical records still locked by the application exceeds the threshold, this function returns a value of 0xFE. In this case, the server automatically starts a new implicit transaction. However, the explicit transaction is still completed and any locks being held are released.