BACKUP DATABASE [WMP] TO DISK = N'd:\WMP0151227.BAK' WITH NOFORMAT, NOINIT, NAME = N'WMP bak', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
/* 压缩日志
sp_helpdb 'WMP'
go
USE [master]
GO
ALTER DATABASE WMP SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE WMP SET RECOVERY SIMPLE --简单模式
GO
USE [WMP]
GO
DBCC SHRINKDATABASE(N'WMP' )
GO
USE [master]
GO
ALTER DATABASE WMP SET RECOVERY FULL WITH NO_WAIT
GO
ALTER DATABASE WMP SET RECOVERY FULL --还原为完全模式
GO
--ALTER DATABASE [WMP] MODIFY FILE ( NAME = N'BankCommMHDB_log', MAXSIZE = UNLIMITED)
--GO
*/