Home > Database > Mysql Tutorial > body text

对 SQL Server 2008 的日志文件进行截断

WBOY
Release: 2016-06-07 14:57:07
Original
1632 people have browsed it

需要将@DBName改为实际的数据库名 SQL Server 源码与演示: 源码出处 ALTER DATABASE @DBName SET RECOVERY SIMPLE WITH NO_WAITDBCC SHRINKFILE(@DBName_log, 1)ALTER DATABASE @DBName SET RECOVERY FULL WITH NO_WAITGO

需要将 @DBName 改为实际的数据库名 SQL Server

源码与演示:源码出处

ALTER DATABASE @DBName SET RECOVERY SIMPLE WITH NO_WAIT
DBCC SHRINKFILE(@DBName_log, 1)
ALTER DATABASE @DBName SET RECOVERY FULL WITH NO_WAIT
GO  
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template