SQL server 2005自动备份文件删除 dn001 2009-06-08 14:58:28 Codedeclare @d Nvarchar(64);set @d = convert(varchar,dateadd(day,-5,getdate()),120);EXECUTE master.dbo.xp_delete_file 0,N'D:databackGFSM',N'bak',@d;EXECUTE master.dbo.xp_delete_file 0,N'D:databackGFSM_KEY',N'bak',@d