Thanks Pete. SQL Agent is running. The purge from the application has stopped working and I am purging it via a SQL Agent job running the scsp_purgeevents stored procedure.
DECLARE @Daystokeep INT
SELECT @Daystokeep=DATEDIFF(dd,MIN(event_dt),GETUTCDATE())
FROM P00CSP1.dbo.CSPEVENT
BEGIN
WHILE @Daystokeep >=90
BEGIN
EXEC P00CSP1.dbo.scsp_purgeevents @eventclass = 'realtime', @purgemode ='PURGE', @filtervalue=@Daystokeep, @purgelimit=0
WAITFOR DELAY '00:00:30';
SET @Daystokeep=@Daystokeep-1
END
END
We are only keeping 90 days worth of data in the table and it is:
fileid Drive Logical Name Allocated Space(MBs) Used Space(MBs) Available Space(MBs)
3 I: scspevents 998707 722113 276594
I can no longer shrink the above file as I receive an error
--Trying to shrink by 512mb
dbccshrinkfile(3, 998067)
--Produces
Msg 0, Level 11, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.
I cannot reorganize the clustered index any longer either as it constantly is blocked:-(