Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

xp_delete_file does not remove older backup files

$
0
0
Hi All,My issue is the following:O.S. Microsoft Server 2012 R2SQL Server 2014 with mixed autentication mode build 12.0.2269user connected: domain admin (so with full rights all over the disk)Maintenance procedures tries to delete old backup files, with a command like this---DECLARE @ReturnCode int EXECUTE @ReturnCode = [master].sys.xp_delete_file 0, N'C:\temp', 'trn', '2016-03-23T08:00:00'IF @ReturnCode <> 0 RAISERROR('Error deleting files.', 16, 1)---the command runs succesfully, no errors on SQL logs, no erros on Windows logs, but files are still there...I tried with "[master].dbo.xp_delete"_file too, some resultsThanks for Your help.

Viewing all articles
Browse latest Browse all 6525

Trending Articles