Azure IoT DevKit send sensor data to Azure SQL Database via IoT Hub using Stream Analytics
The Solution Architect The Solution Architect
2.06K subscribers
13,713 views
204

 Published On Oct 10, 2019

An end-to-end Demo how to set up the Azure IoT DevKit starter kit, upload code on the IoT DevKit, and then configure Azure IoT Hub, creating a Stream Analytics job to pull messages from IoT Hub and store it on a SQL Database in the Cloud.

Please support me on Patreon:   / thesolutionarchitect  

Here is the SQL Script to create the table:
CREATE TABLE [dbo].[iotdevkittable]
(
[Id] [bigint] IDENTITY(1,1) NOT NULL,
[messageId] [varchar] (3) NULL,
[temperature] [nvarchar](200) NULL,
[humidity] [nvarchar](200) NULL,
[PartitionId] [varchar] (3) NULL,
[EventProcessedUtcTime] [datetime] NULL,
[EventEnqueuedUtcTime] [datetime] NULL,
[IoTHub] [nvarchar](200) NULL,
CONSTRAINT [PK_iotdevkittable] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

show more

Share/Embed