Skip to content

Commit 7a6dc56

Browse files
Merge pull request #239392 from sreekzz/patch-183
MS Freshness date change
2 parents 70b20c4 + 55c60a4 commit 7a6dc56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/hdinsight/spark/apache-spark-connect-to-sql-database.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Use Apache Spark to read and write data to Azure SQL Database
3-
description: Learn how to set up a connection between HDInsight Spark cluster and Azure SQL Database. To read data, write data, and stream data into a SQL database
3+
description: Learn how to set up a connection between HDInsight Spark cluster and Azure SQL Database. To read data, write data, and stream data into an SQL database
44
ms.service: hdinsight
55
ms.topic: how-to
66
ms.custom: hdinsightactive,seoapr2020
@@ -68,7 +68,7 @@ In this section, you read data from a table (for example, **SalesLT.Address**) t
6868
```
6969

7070
Press **SHIFT + ENTER** to run the code cell.
71-
1. Use the snippet below to build a JDBC URL that you can pass to the Spark dataframe APIs. The code creates a `Properties` object to hold the parameters. Paste the snippet in a code cell and press **SHIFT + ENTER** to run.
71+
1. Use the following snippet to build a JDBC URL that you can pass to the Spark dataframe APIs. The code creates a `Properties` object to hold the parameters. Paste the snippet in a code cell and press **SHIFT + ENTER** to run.
7272

7373
```scala
7474
import java.util.Properties
@@ -79,7 +79,7 @@ In this section, you read data from a table (for example, **SalesLT.Address**) t
7979
connectionProperties.put("password", s"${jdbcPassword}")
8080
```
8181

82-
1. Use the snippet below to create a dataframe with the data from a table in your database. In this snippet, we use a `SalesLT.Address` table that is available as part of the **AdventureWorksLT** database. Paste the snippet in a code cell and press **SHIFT + ENTER** to run.
82+
1. Use the following snippet to create a dataframe with the data from a table in your database. In this snippet, we use a `SalesLT.Address` table that is available as part of the **AdventureWorksLT** database. Paste the snippet in a code cell and press **SHIFT + ENTER** to run.
8383

8484
```scala
8585
val sqlTableDF = spark.read.jdbc(jdbc_url, "SalesLT.Address", connectionProperties)
@@ -157,7 +157,7 @@ In this section, we use a sample CSV file available on the cluster to create a t
157157

158158
1. Connect to the Azure SQL Database using SSMS and verify that you see a `dbo.hvactable` there.
159159

160-
a. Start SSMS and connect to the Azure SQL Database by providing connection details as shown in the screenshot below.
160+
a. Start SSMS and connect to the Azure SQL Database by providing connection details as shown in the following screenshot.
161161

162162
:::image type="content" source="./media/apache-spark-connect-to-sql-database/connect-to-sql-db-ssms.png " alt-text="Connect to SQL Database using SSMS1" border="true":::
163163

0 commit comments

Comments
 (0)