Question : How do you truncate a Sql 2000 log file

I have a database where the log file size is showing nearly 400GB !
I thought that be running backup exec it would truncate the file size.

I am told I need to run a sql command to get its size down and I am running out of space.

Can someone explain what I need to do. We run sql 2000 database

the ldf file is called support.ldf

Answer : How do you truncate a Sql 2000 log file

hi try this - FrontOff is database name

Use FrontOff
DBCC SHRINKDATABASE ('FrontOff')
Declare @sLogName as varchar(50)
Declare @sSQL as varchar(500)
select top 1  @sLogName = [name] from sysfiles
Where [groupid] = 0
BACKUP LOG FrontOff WITH TRUNCATE_ONLY
Print @sLogName
set @sLogName = rtrim(ltrim(@sLogName))
DBCC SHRINKFILE( @sLogName , 2)
Random Solutions  
 
programming4us programming4us