Hi All,
I do have an issue with deleting backup files through maintenance plan and t-sql. The XP_DELETE_FILE stored procedure doesn't work and the SQL agent jobs keep running and not doing anything, not even backup the databases.
EXECUTE master.dbo.xp_delete_file 0,N'K:\MSSQL\Backup',N'BAK',N'2015-07-15T18:22:01',1
EXECUTE master.dbo.xp_delete_file 0,N'K:\MSSQL\Backup',N'TRN',N'2015-07-15T18:22:25',1
And there is PREEMPTIVE_OS_GETPROCADDRESS wait type under master database with above command.
I don't want to restart the server as critical applications are running on this server.
This is so urgent.
Can you please let me know how to fix auto delete or any other solutions?
Thanks for your help in advance.
Regards,