Log Maintenance (SQL SERVER)

Posted by John
on Wednesday, 19 November 2008

Over time your SQL Server transaction log will fill up and if you don't watch it it'll consume all your server's disk space.

So to cure that problem it's best adding a weekly job to SQL Agent with these commands

Truncate log...

USE [databasename]
GO
BACKUP LOG databasename WITH TRUNCATE_ONLY
GO

Shrink database...

USE [databasename]
GO
DBCC SHRINKDATABASE(N'databasename' )
GO

(truncating only clears the logfile, to reclaim that space you have to shrink the database)

Important!

Do remember to schedule a full database backup before this so you don't lose any important transactions; critical in a live environment.

Heath Ledger has gone

Posted by John
on Wednesday, 23 January 2008

heath ledger

Incredible professional and such a nice guy, you will be missed.

My thoughts are with his family and friends in these difficult times.

Sincerely,

John Griffiths