This sample demonstrates the method LogWriter.SaveSnapshot allowing to create a database snapshot and truncate the transaction log in a single operation.
In a console window run:
TLogCheckpointBut it is more instructive to run one instance in your development environment debugger, stepping through the code.