The AddTransactionCommands method stores a group of replicated transaction commands. If the StartTransaction method is not called prior to this method, AddTransactionsCommands uses an implicit transaction.
HRESULT AddTransactionCommands(
ULONG cCommandDescs,
const DISTCOMMANDDESC rgCommandDescs []);
Part | Description |
---|---|
cCommandDescs | Number of DISTCOMMANDDESC structures in the rgCommandDescs array |
rgCommandDescs | Array of DISTCOMMANDDESC structures that describe the replicated command |
The method returns S_OK if it succeeds and DB_E_ERROROCCURRED if it fails.