sqlserver 2012

时间:2018-05-25 05:53:30

标签: sql sql-server sql-server-2012

我想从数据库中删除特定的日志文件,下面是查询

delete from fn_dblog(null,null) where [Begin Time] like '2018%'

但是我收到错误“不允许对系统目录进行临时更新。”

2 个答案:

答案 0 :(得分:0)

sp_configure 'allow updates' ,0;

reconfigure with override;

from here

answer

答案 1 :(得分:0)

----首先在脚本

下面运行
EXEC sp_configure 'Show Advanced Options', 1

RECONFIGURE WITH OVERRIDE

go

------ then run below script

EXEC sp_configure ‘Database Mail XPs’,1

GO

RECONFIGURE WITH OVERRIDE

GO