Shrinking the Transaction Log in SQL Server 2005

In: IT| Microsoft| SQL Server| Software

14 Jan 2010
  • Use the MS SQL Server Management Studio

EXEC sp_dboption 'XXX', 'trunc. log on chkpt.', 'TRUE'
CHECKPOINT
DBCC SHRINKFILE ('XXX_Log', TRUNCATEONLY)
EXEC sp_dboption 'XXX', 'trunc. log on chkpt.', 'FALSE'
GO

  • (replace XXX with the database name)

Comment Form

about thomasmaurer.ch

Thomas Maurer

Thomas Maurer.
Born in 1986. live in Diegten. Switzerland. work as a System Administrator in Allschwil(Switzerland). interested in in Apple, IT, TV, Movies, Design and Art.

Follow me on twitter

My Tweets

Latest Photos

IMG_0019DSCN0078DSCN0077DSCN0325.JPGDSCN0324.JPGDSCN0323.JPG

Ad