select @@servername
-- 반복 시작 (2번이 마지막이면 안짤리니 백업을 해서 넘긴다...뒤로 뒤로..)
backup log userdatabase to
disk ='NUL'
, disk ='NUL'
, disk ='NUL'
, disk ='NUL'
, disk ='NUL'
, disk ='NUL'
, disk ='NUL'
, disk ='NUL'
go
USE [userdatabase]
GO
DBCC SHRINKFILE (N'userdatabase_Log' , 0, TRUNCATEONLY)
GO
exec sp_helpfile
--반복 끝
USE [master]
GO
ALTER DATABASE [userdatabase] MODIFY FILE ( NAME = N'userdatabase_Log', SIZE = 30720000KB )
GO