c# - What is the best way to represent "Recurring Events" in database? -
I am trying to develop a scheduler- and calendar-based event application in C #, for which an important Representing recurring recurring events in databases What is the best way to represent recurring events in a database?
More information:
While creating this event, I am also sending invitations to some users and people invited to login only during the specified window (meeting duration) in the meeting Or can reject the login when the invitee tries to login, 5 minutes before the scheduled start of the meeting.
, and the table in SQL Server does a great job of this, I will not take the wheel again , I used to just copy their design.
Here are some important fields from sysschedules
freq_type
how often One job runs for this program
1 = only once
4 = Daily
8 = Weekly
16 = Monthly
32 = Monthly, relative to freq_interval
64 = runs when SQL Server Agent service starts
128 = Runs when the computer is idle
freq_interval
The task is executed on the day. Depending on the value of Freq_type, the default value is 0, which indicates that freq_interval is unused. Freq_type value of freq_type effect
1 (one time) freq_interval unused (0)
4 (daily) each freq_interval day
8 (weekly) is freq_interval One or more of the following: 1 = Sunday 2 = Monday 4 = Tuesday 8 = Wednesday 16 = Thursday 32 = Friday 64 = Saturday
16 (Monthly) Frike_Interval day of the month
32 (Monthly, Relative) freq_interval is one of the following: 1 = Sunday = 2 = Monday 3 = Tuesday 4 = Wednesday 5 = Thursday 6 = Friday 7 = Saturday 8 = Day 9 = Day of the week 10 = SP Day of the week
128 (computer runs idle) freq_interval unused (0)
64 (when the SQL Server Agent service starts) P> freq_subday_type
Units for freq_subday_interval
2 seconds
< P> 4 minutes
8 hours
freq_subday_interval
job The number of freq_subday_type duration that occurs between each execution of
freq_relative_interval
Each month is freq_interval, if freq_interval 32 (monthly relative) is one of the following values
0 = freq_relative_interval is unused
1 = first
2 = second
4 = third
< P> 8 = fourth16 = final
freq_recurrence_factor
Number of jobs scheduled Freq_recurrence_factor is used for weeks or months between execution only when freq_type is 8, 16, or 32. If this column has 0, then freq_recurrence_factor is unused.
Comments
Post a Comment