Skip to content

Commit 6a83ab5

Browse files
authored
Update sql-db-table.md
1 parent ac314f9 commit 6a83ab5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/stream-analytics/sql-db-table.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Azure Stream Analytics supports Azure SQL Database as an output for your streami
1717
2. Create a Azure SQL Database to which your Stream Analytics job will write output.
1818

1919
## Write to a new table in SQL Database
20+
2021
This section describes how you can configure your job to write to a table in your Azure SQL Database that has not yet been created.
2122

2223
1. In your Stream Analytics job, select **Outputs** under **Job topology**. Click **Add** and choose **SQL Database**.
@@ -45,6 +46,7 @@ Note: To test your query, you need to have either incoming streaming data in you
4546
6. Once your query is final, select **Overview** and **Start** the job. You can then navigate to the SQL Database table to see your streaming query output.
4647

4748
## Select an existing table from SQL Database
49+
4850
This section describes how you can configure your job to write to a table that already exists in your Azure SQL Database.
4951

5052
1. In your Stream Analytics job, select **Outputs** under **Job topology**. Click **Add** and choose **SQL Database**.
@@ -71,6 +73,7 @@ Note: To test your query, you need to have either incoming streaming data in Eve
7173
6. Once your query is final, select **Overview** and **Start** the job. You can then navigate to the SQL Database table to see your streaming query output.
7274

7375
## Common data type mismatch reasons
76+
7477
It is very important to ensure that the output of your Stream Analytics job matches the column names and data types expected by your SQL Database table. If there is a mismatch, your job will run into data conversion errors and continuously retry until the SQL table definition is changed. You can [change your job’s behavior](stream-analytics-output-error-policy.md) to drop such output that cause data conversion errors and proceed to the next one. The most common schema mismatch reasons are described below.
7578

7679
* **Type mismatch**: The query and target types are not compatible. Rows will not be inserted in the destination. Use a [conversion function](/stream-analytics-query/data-types-azure-stream-analytics) such as TRY_CAST() to align types in the query. The alternate option is to alter the destination table in your SQL database.
@@ -81,6 +84,7 @@ It is very important to ensure that the output of your Stream Analytics job matc
8184
* **Column missing from destination table**: This column is missing from the destination table. The data will not be inserted. Add this column to your destination table if needed.
8285

8386
## Next steps
87+
8488
* [Use SQL reference data as input source](/sql-reference-data.md)
8589
* [Azure Stream Analytics Query Language Reference](/stream-analytics-query/stream-analytics-query-language-reference)
8690
* [Query examples for common Stream Analytics usage patterns](stream-analytics-stream-analytics-query-patterns.md)

0 commit comments

Comments
 (0)