We are running a SQLMAINT job, which is creating HTML reports but the -DelHtmlRpt 5days option is not deleting them. Has anyone else experienced this problem and found a work around? The full command is as follows.
SQLMAINT.EXE -S ServerName -U User -P "Password" -D BPMAIN -CkDB -CkAl -HtmlRpt "f:\Microsoft SQL Server\MSSQL\data\Support\BPMAIN_opt.htm" -DelHtmlRpt 5days -UpdOptiStats 80 -RebldIdx 20
We are running SQL Server 2000, service pack 3 on Windows 2000 service pack 4.