You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.**Key features:** Memory Optimized Tables and Table valued Parameters (TVPs), Natively Compiled Stored Procedures, System-Versioned Temporal Tables, Clustered Columnstore Index, Power BI Report
18
+
2.**Key features:**
19
+
- Memory Optimized Tables and Table valued Parameters (TVPs)
20
+
- Natively Compiled Stored Procedures
21
+
- System-Versioned Temporal Tables
22
+
- Clustered Columnstore Index (CCI)
23
+
- Power BI
19
24
3.**Workload:** Data Ingestion for IoT
20
25
4.**Programming Language:** .NET C#, T-SQL
21
26
5.**Authors:** Perry Skountrianos [perrysk-msft]
@@ -68,11 +73,11 @@ To run this sample, you need the following prerequisites.
68
73
6. Publish the Database
69
74
- Right click on the **Db** SQL Server Database Project and Select **Publish**.
70
75
- Click Edit... to choose your connection string.
71
-
- We recommend choosing **PowerConsumption** as the Database name as this is the default db name the sample is configured to run under.
76
+
- We recommend choosing **PowerConsumption** as the Database name as this is the default db name the sample is configured to run under.
72
77
- Click Publish.
73
78
- Note: For publishing to Azure SQL you need to
74
-
1. Change the DB project target platform to **Microsoft Azure SQL Database V12** and
75
-
2. Comment the T-SQL in the **mod.sql** file in the Db/Storage folder before publishing.
79
+
- Change the DB project target platform to **Microsoft Azure SQL Database V12** and
80
+
- Comment the T-SQL in the **mod.sql** file in the Db/Storage folder before publishing.
76
81
77
82
7. Build the app and run it. Do not use the debugger, as that will slow down the app.
78
83
@@ -90,15 +95,15 @@ To run this sample, you need the following prerequisites.
90
95
91
96
## Sample details
92
97
93
-
General Description
98
+
**High Level Description**
94
99
95
100
This code sample simulates an IoT Smart Grid scenario where multiple IoT power meters are sending electricity usage measurements to a SQL Server memory optimized database. The Data Generator, that can be started either from the Console or the Windows Form client, produces a data generated spike to simulate a [shock absorber scenario] (https://blogs.technet.microsoft.com/dataplatforminsider/2013/09/19/in-memory-oltp-common-design-pattern-high-data-input-rateshock-absorber/). Every async task in the Data Generator produces a batch of records with random values in order to simulate the data of an IoT power meter. It then calls a natively compiled stored procedure, that accepts an memory optimized table valued parameter (TVP), to insert the data into an memory optimized SQL Server table. In addition to the in-memory features, the sample is leveraging [System-Versioned Temporal Tables](https://msdn.microsoft.com/en-us/library/dn935015.aspx) for building version history, [Clustered Columnstore Index](https://msdn.microsoft.com/en-us/library/dn817827.aspx) for enabling real time operational analytics, and [Power BI](https://powerbi.microsoft.com/en-us/desktop/) for data visualization.
96
101
97
102

98
103

99
104

100
105
101
-
Visual Studio Projects:
106
+
**Visual Studio Solution Projects**
102
107
103
108
1.**ConsoleAppClient**: Console Data Generator client. Uses START | STOP | HELP | REPORT | EXIT commands.
104
109
2.**Data Generator**: Data Generator client library. Uses multiple async tasks to produce a test data workload.
0 commit comments