Archive for the ‘SQL Server’ Category

var fbShare = {url: ‘http://www.thomasmaurer.ch/2010/02/how-to-integrate-slipstream-sql-server-2008-and-sp1/’,size:’small’} To install SQL Server 2008 on a Windows Server 2008 R2 you need a slipstream version of SQL Server 2008 with integrated Servicepack 1. At the moment you can’t download SQL Server 2008 with integrated SP1, so you have to create your own slipstream version.
1. Copy your original SQL [...]

var 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)

var 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)


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