积极答复者
清除数据库维护日志

问题
答案
-
那个删除是只对备份文件有效, 其他文件不起作用的
- 已标记为答案 Amy PengMicrosoft employee, Moderator 2013年5月29日 2:44
-
xp_delete_file
only delete files recognized by SQL Server 2005 (backup files, transaction logs, ...). Perhaps you can try something like this:xp_cmdshell 'del <filename>'
Please Mark As Answer if it is helpful.
- 已标记为答案 Amy PengMicrosoft employee, Moderator 2013年5月29日 2:45
-
- 已标记为答案 Amy PengMicrosoft employee, Moderator 2013年5月29日 2:44
-
那我怎么定时删除维护计划文本报告?我使用的是sql server 2008 R2
大其心,可容天下之物; 虚其心,可受天下之善;
- 已标记为答案 Amy PengMicrosoft employee, Moderator 2013年5月29日 2:44
全部回复
-
那个删除是只对备份文件有效, 其他文件不起作用的
- 已标记为答案 Amy PengMicrosoft employee, Moderator 2013年5月29日 2:44
-
xp_delete_file
only delete files recognized by SQL Server 2005 (backup files, transaction logs, ...). Perhaps you can try something like this:xp_cmdshell 'del <filename>'
Please Mark As Answer if it is helpful.
- 已标记为答案 Amy PengMicrosoft employee, Moderator 2013年5月29日 2:45
-
LZ看一下MSDN的这篇文章
安装 SQL 服务器 2005 Service Pack 2 后,清理任务将不会删除数据库维护计划报告
http://support.microsoft.com/kb/938085/zh-cn?wa=wsignin1.0
-
- 已标记为答案 Amy PengMicrosoft employee, Moderator 2013年5月29日 2:44
-
那我怎么定时删除维护计划文本报告?我使用的是sql server 2008 R2
大其心,可容天下之物; 虚其心,可受天下之善;
- 已标记为答案 Amy PengMicrosoft employee, Moderator 2013年5月29日 2:44