Delete Database Log After 30 Days

PHOTO EMBED

Mon Aug 23 2021 12:02:49 GMT+0000 (UTC)

Saved by @qasimashraf #sql #tsql

DELETE FROM [dbo].[logs] WHERE date < DATEADD(DAY, -30, GETDATE())
content_copyCOPY