Pra você ter um sistema de resetes em tempo real não precisa de JOB
Crie em seu banco de dados as colunas:
resetsDay INT Desmarcado (0)
resetsWeek INT Desmarcado (0)
resetsMonth INT Desmarcado (0)
Rode a Trigger:
USE [MuOnline]
GO
/****** Object: Trigger [dbo].[add_resetrank] Script Date: 12/04/2011 13:49:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[add_resetrank]
ON [dbo].[Character]
after update
as
IF UPDATE(resets)
begin SET NOCOUNT ON;
Update [Character] set [Character].resetsDay=resetsDay+1, resetsWeek=resetsWeek+1, resetsMonth=resetsMonth+1
Where [Character].accountid=(SELECT accountid FROM Inserted)
and [Character].name=(SELECT name FROM Inserted)
end
Para remover a Trigger: