saddoness
Newbie
Points: 7
More actions
February 19, 2010 at 12:19 pm
#137304
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
VG-619426
Hall of Fame
Points: 3914
February 19, 2010 at 3:41 pm
#1122187
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)
ALTER DATABASE [GLP] REMOVE FILE file2_log
-VG
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply