Hi ghemant,
My goal is just to free up log space. The backup log with truncate_only does exactly that.
I'm doing a mass data manipulation of all tables in a database. A full backup will be done before this task. My understanding is that checkpoint will cause log truncation in simple recovery model. I want to free up log space for reuse after data manipulating of each table so that the log file size won't grow too much. I don't want to depend on the automatic checkpoint to occur so I want to issue checkpoint statement to force checkpoint to occur.
Does log truncation occur for executing checkpoint statement manually? This old MS article for SQL Server 6.5 and older has this statement: Note that the log will not be truncated when issuing a manual checkpoint command in a database with "truncate log on checkpoint" on. However, I don't think this statement is valid for SQL Server 2000, SQL Server 2005, and SQL Server 2008. I guess it is valid for SQL Server 7.
Is there any setting that will prevent log truncation on checkpoint in SQL Server 2008?