明永成

导航

 

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

*/

posted on 2016-07-17 15:21  明永成  阅读(649)  评论(0编辑  收藏  举报