This is a migrated thread and some comments may be shown as answers.

SQL Queries with Scheduler

3 Answers 175 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Aidan
Top achievements
Rank 1
Aidan asked on 05 Feb 2008, 04:49 AM
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

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 05 Feb 2008, 12:16 PM
Hello Aidan,

Please, refer to recurrence Overview and The recurrence engine topics in the help. Also, the topic on
How to display all RadScheduler appointments in GridView might helpful for this case.

If you have any other questions, please feel free to drop us a line.


Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Aidan
Top achievements
Rank 1
answered on 05 Feb 2008, 10:30 PM
Hi Peter,
Thanks for the prompt response - though I'm not sure you've answered my question. 

I have already been through the documentation you linked to, however there's nothing about extracting recurrence without using the recurrence engine, or using the scheduler (as far as I can see anyway!).

I'm wondering if there is anything that could be used to return all appointments using only SQL server?  There are a number of reasons for this - but our main concern is that if we have a large number of appointments (going back many years) in our database, then processing one record at a time could be quite time consuming.  Doing this inside a stored procedure however - would be considerably faster.

Cheers,

Aidan
0
Accepted
Peter
Telerik team
answered on 07 Feb 2008, 04:26 PM
Hi Aidan,

Thanks for clarifying. Due to the way we implement the recurrence concept, what you want to achieve is not possible. Recurrent appointments should be processed one by one.


Regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Aidan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Aidan
Top achievements
Rank 1
Share this question
or