Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 cleaning a log file

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2007-04-05 : 12:47:11
i have log file of 600 mb and i want to make it 0MB or something like that
i tried to do :

DBCC SHRINKFILE(Storage1_Log, 1)
BACKUP LOG Storage1 WITH TRUNCATE_ONLY

but when i check the folder there is no change!
what can i do ?
thnaks i nadvance
peleg


Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2007-04-05 : 13:16:56
BACKUP LOG Storage1 WITH TRUNCATE_ONLY

DBCC SHRINKFILE(Storage1_Log, 2)

also, can't shrink smaller than original size.

what recovery model is db in? if full or bulk-logged, u should be doing tran log backups, and if u arent or dont need tran log backups, then u should flip db to simple.
Go to Top of Page

jayp369
Starting Member

26 Posts

Posted - 2007-04-05 : 13:17:24
what recovery model is it on?

Jay
Go to Top of Page

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2007-04-08 : 02:06:26
its on simple
i think it isnt working beacuse of the minimum size of the log defined on the 31985.
how do decrease the minimum size to the minimum that is possible?

Thanks in advnacre
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-04-09 : 16:04:46
Detach the db and reattach it with data file only, sql will create a small empty log file.
Go to Top of Page
   

- Advertisement -