• But if you have two or more log files this SP will not work. Read about it there http://qa.sqlservercentral.com/columnists/awarren/attachanddetachagain.asp and there:http://qa.sqlservercentral.com/scripts/contributions/599.asp