This sample demonstrates the LogWriter.SaveSnapshot() method, which creates a database snapshot and truncates the transaction log in a single operation.
In a console window, run:
TLogCheckpointCSHowever, it is more instructive to run an instance in your development environment's debugger and step through the code.