Microsoft
Software
Hardware
Network
Question : Shrinkfile and backup log with truncate only do not shrink log
Hi,
The log file will not shrink in size.
I used the following commend (to no avail):
CHECKPOINT
GO
DBCC shrinkfile('DBNAME', 1)
GO
BACKUP LOG CAM WITH TRUNCATE_ONLY
GO
DBCC shrinkfile('DBNAME', 1)
GO
The dabase was imported from 2000 a few weeks ago.
It is using the "FULL" recovery model, since it is a high availability system.
When I run SP_LOCK, I see no locking transactions.
When I run the DBCC opentran, I see the following:
Transaction information for database 'DBNAME'.
Replicated Transaction Information:
Oldest distributed LSN : (0:0:0)
Oldest non-distributed LSN : (145792:201:1)
But there is no replication on this database... And there hasn't been since I got here (1 year+).
I also ran the:
EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1
But I got the message:
Msg 18757, Level 16, State 1, Procedure sp_repldone, Line 1
Unable to execute procedure. The database is not published...
Any ideas?
Answer : Shrinkfile and backup log with truncate only do not shrink log
You should look at
http://support.microsoft.c
om/kb/9075
11/en-us
and remember that log files are circular. If you have a 1 GB of log file, it will shrink it to the point in the log that is free to the end of the file.
Random Solutions
Outlook will only start in safe mode
migrating outlook email account settings and rules from outlook 2003 to outlook 2007
When I install the chipset driver, my USB ports stop working
OWA - updated logo for OWA logon page won'd update through ISA 2004
When printing from word on HP printer I get "Mf Feed A4" message on Laserjet 4MP
Windows Updates won't install..WUAUCLT.EXE
change mail recipient in send to menu to use html mail
Can not Hibernate
XP fails to boot up with a secondary external usb drive
Microsoft ActiveSync 4.5