Hi All,
I'm having a bit of trouble coming to terms with the Scheduler control, in particular performing database queries.
I currently have a stored procedure in which I'm attempting to find the next available time slot (of 30 minutes) which I've managed to do quite simply. However by doing this outside of the scheduler and any application code, I can't (easily) take into account recurrence.
A very simple example of this is:
SELECT *
FROM Appointments
WHERE Start >= @Start
AND End <= @End
***This will give all appointments within the specified range, however it will not return any appointments that occur because of recurrence.
Is there an easy way to query the table I'm storing all appointments only using standard MSSQL functionality?
Any help would be appreciated.
Aidan
I'm having a bit of trouble coming to terms with the Scheduler control, in particular performing database queries.
I currently have a stored procedure in which I'm attempting to find the next available time slot (of 30 minutes) which I've managed to do quite simply. However by doing this outside of the scheduler and any application code, I can't (easily) take into account recurrence.
A very simple example of this is:
SELECT *
FROM Appointments
WHERE Start >= @Start
AND End <= @End
***This will give all appointments within the specified range, however it will not return any appointments that occur because of recurrence.
Is there an easy way to query the table I'm storing all appointments only using standard MSSQL functionality?
Any help would be appreciated.
Aidan