transation log file

  • hi all,

    I have 2 log files from my database ,

    D:/database_log.LDF(primary)

    F:/database_log1.LDF

    I try to delete database_log1.LDF,but received menssage of error because file is not empty.

    How can delete secundary log file ?

    att

    Paul

  • First try to empty the file and then remove it..If it can not be emptied, then can not be removed....

    USE [database]

    GO

    DBCC SHRINKFILE (file2_log' , EMPTYFILE)

    GO

    USE [database]

    GO

    ALTER DATABASE [GLP] REMOVE FILE file2_log

    GO

    -VG

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

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