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
Copy file name to clipboardExpand all lines: articles/azure-sql-edge/create-stream-analytics-job.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ The example below creates an external stream object for the Edge Hub. To create
48
48
1. Create an External File Format with format type of JSON.
49
49
50
50
```sql
51
-
Create External file format InputFileFormat1
51
+
Create External file format InputFileFormat
52
52
WITH (
53
53
format_type = JSON,
54
54
)
@@ -58,7 +58,7 @@ The example below creates an external stream object for the Edge Hub. To create
58
58
2. Create a External Data Source for the IoT Edge Hub. The T-SQL script below create a data source connection to an Edge hub running on the same docker host as SQL Edge.
59
59
60
60
```sql
61
-
CREATE EXTERNAL DATA SOURCE EdgeHubInput3 WITH (
61
+
CREATE EXTERNAL DATA SOURCE EdgeHubInput WITH (
62
62
LOCATION = 'edgehub://'
63
63
)
64
64
go
@@ -69,7 +69,7 @@ The example below creates an external stream object for the Edge Hub. To create
69
69
```sql
70
70
CREATE EXTERNAL STREAM MyTempSensors WITH (
71
71
DATA_SOURCE = EdgeHubInput,
72
-
FILE_FORMAT = InputFileFormat1,
72
+
FILE_FORMAT = InputFileFormat,
73
73
LOCATION = N'TemperatureSensors',
74
74
INPUT_OPTIONS = N'',
75
75
OUTPUT_OPTIONS = N''
@@ -90,7 +90,7 @@ The example below creates an external stream object to the local SQL Edge databa
90
90
2. Create a database scoped credential for accessing the SQL Server source. The following example creates a credential to the external data source with IDENTITY ='username'and SECRET ='password'.
91
91
92
92
```sql
93
-
CREATE DATABASE SCOPED CREDENTIAL SQLCredential1
93
+
CREATE DATABASE SCOPED CREDENTIAL SQLCredential
94
94
WITH IDENTITY = '<SQL_Login>', SECRET = '<SQL_Login_PASSWORD>'
95
95
go
96
96
```
@@ -104,7 +104,7 @@ The example below creates an external stream object to the local SQL Edge databa
104
104
```sql
105
105
CREATE EXTERNAL DATA SOURCE LocalSQLOutput WITH (
106
106
LOCATION = 'sqlserver://tcp:.,1433'
107
-
,CREDENTIAL = SQLCredential1
107
+
,CREDENTIAL = SQLCredential
108
108
)
109
109
go
110
110
```
@@ -131,7 +131,7 @@ The example below create a simple streaming job with one streaming query. This q
@statement= N'Select * INTO TemperatureMeasurements from MyEdgeHubInput1'
134
+
@statement= N'Select * INTO TemperatureMeasurements from MyEdgeHubInput'
135
135
```
136
136
137
137
The example below creates a more complex streaming job with multiple different queries, including a query which uses the in-built AnomalyDetection_ChangePoint function to identify anomalies in the temperature data.
0 commit comments