Overgrown Log Files

  • Please i need an assistance on how to shrink my log files which has grown so big that it takes about 45 mins for me to copy the log and data files.

    Maximus

    Nigeria

  • Take transaction log backup using the below command,

    Backup log dbname to disk='Path\filename.trn'

    Shrink the log file using the below command,

    Use yourdb

    go

    Dbcc Shrinkfile('logfilename',500)

    go

    [font="Verdana"]- Deepak[/font]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply