ILog::TruncatePrefix method (txlogpub.h)
Throws away the specified prefix of the log, making it no longer retrievable.
HRESULT TruncatePrefix( [in] LSN lsnFirstToKeep );
The LSN of the first record not to be thrown away. If this parameter is 0, the entire log is emptied.
This method can return the following values, as well as other HRESULT values.
||The log was successfully truncated.|
||lsnFirstToKeep is outside the current limits of the log. See ILog::GetLogLimits.|
This request is only a hint to the log implementation. The log is free to ignore the request, or to retain more than was strictly requested. Many ILog implementations will follow this latter option.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|