当前位置:Gxlcms > 数据库问题 > SQL Server2005清除数据库日志

SQL Server2005清除数据库日志

时间:2021-07-01 10:21:17 帮助过:32人阅读

 SQL2005清空删除日志:

复制代码 代码如下:

Backup Log DNName with no_log  ‘这里的DNName是你要收缩的数据库名,自己注意修改下面的数据库名,我就不再注释了。
go
dump transaction DNName with no_log
go
USE DNName
DBCC SHRINKFILE (2)
Go

SQL Server2005清除数据库日志

标签:sql   log   清除数据   是你   cti   with   修改   name   dbcc   

人气教程排行