Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]HTML Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Charts
  [Expand]Pivot Grid
  [Collapse]Scheduler
   [Expand]Overview - SchedulerControl
    Main Features - Scheduler
   [Expand]Getting Started - Scheduler
   [Collapse]Concepts - Scheduler
     MS SQL Server Data Tables
     Recurrence Dialog as a Standalone Form
   [Expand]Visual Elements - Scheduler
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
  [Expand]SpellChecker
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

MS SQL Server Data Tables

The following *.sql script should be used to generate two tables to persist appointments and resources data.

SQL Script
CREATE TABLE [dbo].[Appointments] (
        [UniqueID] [int] IDENTITY (1, 1) NOT NULL ,
        [Type] [int] NULL ,
        [StartDate] [smalldatetime] NULL ,
        [EndDate] [smalldatetime] NULL ,
        [AllDay] [bit] NULL ,
        [Subject] [nvarchar] (50) NULL ,
        [Location] [nvarchar] (50) NULL ,
        [Description] [nvarchar](max) NULL ,
        [Status] [int] NULL ,
        [Label] [int] NULL ,
        [ResourceID] [int] NULL ,
        [ResourceIDs] [nvarchar](max) NULL ,
        [ReminderInfo] [nvarchar](max) NULL ,
        [RecurrenceInfo] [nvarchar](max) NULL ,
        [CustomField1] [nvarchar](max) NULL
CONSTRAINT [PK_Appointments] PRIMARY KEY CLUSTERED
(
        [UniqueID] ASC
)
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

CREATE TABLE [dbo].[Resources] (
        [UniqueID] [int] IDENTITY (1, 1) NOT NULL ,
        [ResourceID] [int] NOT NULL ,
        [ResourceName] [nvarchar] (50) NULL ,
        [Color] [int] NULL ,
        [Image] [image] NULL ,
        [CustomField1] [nvarchar](max) NULL
CONSTRAINT [PK_Resources] PRIMARY KEY CLUSTERED
(
        [UniqueID] ASC
)
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
Note

If SchedulerControl.ResourceSharing is enabled, map the Appointments.ResourceID property to the ResourceIDs field, which is [nvarchar](max). Otherwise, map it to the ResourceID field. The ResourceID does not necessarily need to be an integer; the Scheduler treats resource identifier as an Object type, so you can use any type supported by MS SQL Server. Make sure that the type of the ResourceID field is the same in Appointments and Resources tables.

Expanded See Also

How would you rate this topic?​​​​​​​