Home > SQL Challenge > Transaction Log Is Full

Transaction Log Is Full

When the server is low on disk space (this is often true on development SQL server), there are several things we can do to minimize the log file size.

Set the Recovery model to Simple instead of Full


Shrink the log file

USE Marimba

backup log Marimba with truncate_only

dbcc shrinkfile (Marimba_log, 1)

Check the log_reuse_wait_desc on sys.databases

select name, log_reuse_wait_desc from sys.databases

(to find out what Nothing, LOG_BACKUP mean, read this http://msdn.microsoft.com/en-us/library/ms345414.aspx)

Categories: SQL Challenge
  1. No comments yet.
  1. No trackbacks yet.

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 )

Google+ photo

You are commenting using your Google+ 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

%d bloggers like this: