sqlcmd -S . -E -Q "DELETE FROM [RayVentoryDataHub].[dbo].[TaskHistory] where PlannedStartDate < DATEADD(DAY,-90,getdate())"