Clearing Down The Transaction Log

I have a colleague to thank for this:

This is blisteringly fast and just works.

use Core

go

checkpoint

go

backup log “Core” with truncate_only

go

DBCC SHRINKFILE ( “Core_log” )

go

use OtherDB

go

checkpoint

go

backup log “OtherDB” with truncate_only

go

DBCC SHRINKFILE ( “OtherDB_log” )

go

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s