Visual Studio 2010 と Database Sql Server 2010 を使用しています。
時間間隔が発生したときに電子メールを送信する必要があるウィンドウ サービスを作成しました (EMAIL_SENT_TIME)
マイ データベースには、この列が含まれています
Tracker_Id bigint
,EMAIL_SENT_TIME bigint --this contains interval in which the email must be fired 1800,3600,7200 etc,
Last_check datetime --the previous check datetime,
next_check datetime --the next check datetime
テーブルにこの日付が含まれていると仮定します。EMAIL_SENT_TIME | Last_check | next_check
100097 1800 日時 nextdatetime
100098 3600 日時 nextdatetime
100099 7200 日時 nextdatetime
100100 1800 日時 nextdatetime
1800 は 30 分、3600 は 1 時間などを意味します。
EMAIL_SENT_TIME が 1800 などの 30 分後にメールを送信したい。
この問題を解決する方法....