begin tran declare @xMonths int; set @xMonths = 6; delete from [dbo].[ConnectionLog] where creationdate < dateadd(MONTH, - @xMonths, getdate()) commit tran
begin tran declare @xMonths int; set @xMonths = 6; delete from [dbo].[ConnectionLog] where creationdate < dateadd(MONTH, - @xMonths, getdate()) commit tran