In: IT| Microsoft| SQL Server| Software
14 Jan 2010var fbShare = {url: ‘http://www.thomasmaurer.ch/2010/01/shrinking-the-transaction-log-in-sql-server-2005/’,size:’small’}
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)
In: IT| Microsoft| SQL Server| Software
14 Jan 2010var fbShare = {url: ‘http://www.thomasmaurer.ch/2010/01/shrinking-the-transaction-log-in-sql-server-2000/’,size:’small’}
Use the SQL Query Analyzer
BACKUP LOG XXX WITH TRUNCATE_ONLY
GO
DBCC SHRINKFILE(XXX_log, 10)
GO
(replace XXX with the database name)

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.