ODBC guide

Get event


This example retrieves a single event by its ID from the specified calendar. Supply the calendar ID and event ID to fetch the event details.

Use case: Fetch detailed information for a specific event.

SELECT * FROM get_event  -- Direct endpoint for getting a single event
WITH (CalendarId='MyCalendarId'  -- ID of the calendar containing the event
     ,EventId='MyEventId')        -- Unique ID of the event to retrieve
	 
--OR-- Use TableName + WHERE clause
--SELECT * FROM Events WHERE Id='MyEventId'  -- Filter by event ID in WHERE clause