Skip to content

Commit f3b5ed5

Browse files
authored
Merge pull request #101963 from msebolt/quickstart-touchup-pr1
initial draft
2 parents 41918d6 + fafb1ec commit f3b5ed5

File tree

4 files changed

+104
-104
lines changed

4 files changed

+104
-104
lines changed

articles/sql-database/sql-database-connect-query-java.md

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Use Java to query
2+
title: Use Java to query a database
33
description: Shows you how to use Java to create a program that connects to an Azure SQL database and query it using T-SQL statements.
44
services: sql-database
55
ms.service: sql-database
@@ -12,36 +12,41 @@ ms.reviewer: v-masebo
1212
ms.date: 03/25/2019
1313
ms.custom: seo-java-july2019. seo-java-august2019
1414
---
15-
# Quickstart: Use Java to connect to and query an Azure SQL database
15+
# Quickstart: Use Java to query an Azure SQL database
1616

17-
This article demonstrates how to use [Java](/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server) to connect to an Azure SQL database. You can then use T-SQL statements to query data.
17+
In this quickstart, you use Java to connect to an Azure SQL database and use T-SQL statements to query data.
1818

1919
## Prerequisites
2020

21-
To complete this sample, make sure you have the following prerequisites:
21+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
2222

23-
- An Azure SQL database. You can use one of these quickstarts to create and then configure a database in Azure SQL Database:
24-
25-
|| Single database | Managed instance |
26-
|:--- |:--- |:---|
27-
| Create| [Portal](sql-database-single-database-get-started.md) | [Portal](sql-database-managed-instance-get-started.md) |
28-
|| [CLI](scripts/sql-database-create-and-configure-database-cli.md) | [CLI](https://medium.com/azure-sqldb-managed-instance/working-with-sql-managed-instance-using-azure-cli-611795fe0b44) |
29-
|| [PowerShell](scripts/sql-database-create-and-configure-database-powershell.md) | [PowerShell](scripts/sql-database-create-configure-managed-instance-powershell.md) |
30-
| Configure | [Server-level IP firewall rule](sql-database-server-level-firewall-rule.md)| [Connectivity from a VM](sql-database-managed-instance-configure-vm.md)|
31-
|||[Connectivity from on-site](sql-database-managed-instance-configure-p2s.md)
32-
|Load data|Adventure Works loaded per quickstart|[Restore Wide World Importers](sql-database-managed-instance-get-started-restore.md)
33-
|||Restore or import Adventure Works from [BACPAC](sql-database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)|
23+
- An [Azure SQL database](sql-database-single-database-get-started.md)
3424

35-
> [!IMPORTANT]
36-
> The scripts in this article are written to use the Adventure Works database. With a managed instance, you must either import the Adventure Works database into an instance database or modify the scripts in this article to use the Wide World Importers database.
25+
- [Java](/sql/connect/jdbc/microsoft-jdbc-driver-for-sql-server)-related software
26+
27+
# [macOS](#tab/macos)
28+
29+
Install Homebrew and Java, then install Maven using steps **1.2** and **1.3** in [Create Java apps using SQL Server on macOS](https://www.microsoft.com/sql-server/developer-get-started/java/mac/).
30+
31+
# [Ubuntu](#tab/ubuntu)
32+
33+
Install Java, the Java Development Kit, then install Maven using steps **1.2**, **1.3**, and **1.4** in [Create Java apps using SQL Server on Ubuntu](https://www.microsoft.com/sql-server/developer-get-started/java/ubuntu/).
34+
35+
# [Windows](#tab/windows)
3736

38-
- Java-related software installed for your operating system:
37+
Install Java, then install Maven using steps **1.2** and **1.3** in [Create Java apps using SQL Server on Windows](https://www.microsoft.com/sql-server/developer-get-started/java/windows/).
3938

40-
- **MacOS**, install Homebrew and Java, then install Maven. See [Step 1.2 and 1.3](https://www.microsoft.com/sql-server/developer-get-started/java/mac/).
39+
---
4140

42-
- **Ubuntu**, install Java, the Java Development Kit, then install Maven. See [Step 1.2, 1.3, and 1.4](https://www.microsoft.com/sql-server/developer-get-started/java/ubuntu/).
41+
> [!IMPORTANT]
42+
> The scripts in this article are written to use the **Adventure Works** database.
4343
44-
- **Windows**, install Java, then install Maven. See [Step 1.2 and 1.3](https://www.microsoft.com/sql-server/developer-get-started/java/windows/).
44+
> [!NOTE]
45+
> You can optionally choose to use an Azure SQL managed instance.
46+
>
47+
> To create and configure, use the [Azure Portal](sql-database-managed-instance-get-started.md), [PowerShell](scripts/sql-database-create-configure-managed-instance-powershell.md), or [CLI](https://medium.com/azure-sqldb-managed-instance/working-with-sql-managed-instance-using-azure-cli-611795fe0b44), then setup [on-site](sql-database-managed-instance-configure-p2s.md) or [VM](sql-database-managed-instance-configure-vm.md) connectivity.
48+
>
49+
> To load data, see [restore with BACPAC](sql-database-import.md) with the [Adventure Works](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works) file, or see [restore the Wide World Importers database](sql-database-managed-instance-get-started-restore.md).
4550
4651
## Get SQL server connection information
4752

articles/sql-database/sql-database-connect-query-nodejs.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Quickstart: Use Node.js to query data from an Azure SQL database"
2+
title: Use Node.js to query a database
33
description: How to use Node.js to create a program that connects to an Azure SQL database and query it using T-SQL statements.
44
services: sql-database
55
ms.service: sql-database
@@ -14,36 +14,39 @@ ms.custom: seo-javascript-september2019, seo-javascript-october2019
1414
---
1515
# Quickstart: Use Node.js to query an Azure SQL database
1616

17-
This quickstart demonstrates how to use [Node.js](https://nodejs.org) to connect to an Azure SQL database. You can then use T-SQL statements to query data.
17+
In this quickstart, you use Node.js to connect to an Azure SQL database and use T-SQL statements to query data.
1818

1919
## Prerequisites
2020

21-
To complete this sample, make sure you have the following prerequisites:
21+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
2222

23-
- An Azure SQL database. You can use one of these quickstarts to create and then configure a database in Azure SQL Database:
23+
- An [Azure SQL database](sql-database-single-database-get-started.md)
24+
25+
- [Node.js](https://nodejs.org)-related software
2426

25-
|| Single database | Managed instance |
26-
|:--- |:--- |:---|
27-
| Create| [Portal](sql-database-single-database-get-started.md) | [Portal](sql-database-managed-instance-get-started.md) |
28-
|| [CLI](scripts/sql-database-create-and-configure-database-cli.md) | [CLI](https://medium.com/azure-sqldb-managed-instance/working-with-sql-managed-instance-using-azure-cli-611795fe0b44) |
29-
|| [PowerShell](scripts/sql-database-create-and-configure-database-powershell.md) | [PowerShell](scripts/sql-database-create-configure-managed-instance-powershell.md) |
30-
| Configure | [Server-level IP firewall rule](sql-database-server-level-firewall-rule.md)| [Connectivity from a VM](sql-database-managed-instance-configure-vm.md)|
31-
|||[Connectivity from on-site](sql-database-managed-instance-configure-p2s.md)
32-
|Load data|Adventure Works loaded per quickstart|[Restore Wide World Importers](sql-database-managed-instance-get-started-restore.md)
33-
|||Restore or import Adventure Works from [BACPAC](sql-database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)|
34-
|||
27+
# [macOS](#tab/macos)
3528

36-
> [!IMPORTANT]
37-
> The scripts in this article are written to use the Adventure Works database. With a managed instance, you must either import the Adventure Works database into an instance database or modify the scripts in this article to use the Wide World Importers database.
29+
Install Homebrew and Node.js, then install the ODBC driver and SQLCMD using steps **1.2** and **1.3** in [Create Node.js apps using SQL Server on macOS](https://www.microsoft.com/sql-server/developer-get-started/node/mac/).
3830

31+
# [Ubuntu](#tab/ubuntu)
3932

40-
- Node.js-related software for your operating system:
33+
Install Node.js, then install the ODBC driver and SQLCMD using steps **1.2** and **1.3** in [Create Node.js apps using SQL Server on Ubuntu](https://www.microsoft.com/sql-server/developer-get-started/node/ubuntu/).
4134

42-
- **MacOS**, install Homebrew and Node.js, then install the ODBC driver and SQLCMD. See [Step 1.2 and 1.3](https://www.microsoft.com/sql-server/developer-get-started/node/mac/).
43-
44-
- **Ubuntu**, install Node.js, then install the ODBC driver and SQLCMD. See [Step 1.2 and 1.3](https://www.microsoft.com/sql-server/developer-get-started/node/ubuntu/).
45-
46-
- **Windows**, install Chocolatey and Node.js, then install the ODBC driver and SQLCMD. See [Step 1.2 and 1.3](https://www.microsoft.com/sql-server/developer-get-started/node/windows/).
35+
# [Windows](#tab/windows)
36+
37+
Install Chocolatey and Node.js, then install the ODBC driver and SQLCMD using steps **1.2** and **1.3** in [Create Node.js apps using SQL Server on Windows](https://www.microsoft.com/sql-server/developer-get-started/node/windows/).
38+
39+
---
40+
41+
> [!IMPORTANT]
42+
> The scripts in this article are written to use the **Adventure Works** database.
43+
44+
> [!NOTE]
45+
> You can optionally choose to use an Azure SQL managed instance.
46+
>
47+
> To create and configure, use the [Azure Portal](sql-database-managed-instance-get-started.md), [PowerShell](scripts/sql-database-create-configure-managed-instance-powershell.md), or [CLI](https://medium.com/azure-sqldb-managed-instance/working-with-sql-managed-instance-using-azure-cli-611795fe0b44), then setup [on-site](sql-database-managed-instance-configure-p2s.md) or [VM](sql-database-managed-instance-configure-vm.md) connectivity.
48+
>
49+
> To load data, see [restore with BACPAC](sql-database-import.md) with the [Adventure Works](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works) file, or see [restore the Wide World Importers database](sql-database-managed-instance-get-started-restore.md).
4750
4851
## Get SQL server connection information
4952

articles/sql-database/sql-database-connect-query-python.md

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'Quickstart: Use Python to query'
2+
title: Use Python to query a database
33
description: This topic shows you how to use Python to create a program that connects to an Azure SQL database and query it using Transact-SQL statements.
44
services: sql-database
55
ms.service: sql-database
@@ -14,35 +14,49 @@ ms.date: 03/25/2019
1414
---
1515
# Quickstart: Use Python to query an Azure SQL database
1616

17-
This article demonstrates how to use [Python](https://python.org) to connect to an Azure SQL database and use Transact-SQL statements to query data. For further SDK details, check out our [reference](https://docs.microsoft.com/python/api/overview/azure/sql) documentation, the [pyodbc GitHub repository](https://github.com/mkleehammer/pyodbc/wiki/), and a [pyodbc sample](https://github.com/mkleehammer/pyodbc/wiki/Getting-started).
17+
In this quickstart, you use Python to connect to an Azure SQL database and use T-SQL statements to query data.
1818

1919
## Prerequisites
2020

21-
To complete this quickstart, make sure you have the following:
21+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
2222

23-
- An Azure SQL database. You can use one of these quickstarts to create and then configure a database in Azure SQL Database:
23+
- An [Azure SQL database](sql-database-single-database-get-started.md)
24+
25+
- [Python](https://python.org/downloads) 3 and related software
2426

25-
|| Single database | Managed instance |
26-
|:--- |:--- |:---|
27-
| Create| [Portal](sql-database-single-database-get-started.md) | [Portal](sql-database-managed-instance-get-started.md) |
28-
|| [CLI](scripts/sql-database-create-and-configure-database-cli.md) | [CLI](https://medium.com/azure-sqldb-managed-instance/working-with-sql-managed-instance-using-azure-cli-611795fe0b44) |
29-
|| [PowerShell](scripts/sql-database-create-and-configure-database-powershell.md) | [PowerShell](scripts/sql-database-create-configure-managed-instance-powershell.md) |
30-
| Configure | [Server-level IP firewall rule](sql-database-server-level-firewall-rule.md)| [Connectivity from a VM](sql-database-managed-instance-configure-vm.md)|
31-
|||[Connectivity from on-site](sql-database-managed-instance-configure-p2s.md)
32-
|Load data|Adventure Works loaded per quickstart|[Restore Wide World Importers](sql-database-managed-instance-get-started-restore.md)
33-
|||Restore or import Adventure Works from [BACPAC](sql-database-import.md) file from [GitHub](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works)|
34-
|||
27+
# [macOS](#tab/macos)
3528

36-
> [!IMPORTANT]
37-
> The scripts in this article are written to use the Adventure Works database. With a managed instance, you must either import the Adventure Works database into an instance database or modify the scripts in this article to use the Wide World Importers database.
38-
39-
- Python and related software for your operating system:
40-
41-
- **MacOS**: Install Homebrew and Python, install the ODBC driver and SQLCMD, and then install the Python driver for SQL Server. See Steps 1.2, 1.3, and 2.1 in [Create Python apps using SQL Server on macOS](https://www.microsoft.com/sql-server/developer-get-started/python/mac/). For more information, see [Install the Microsoft ODBC Driver on Linux and macOS](https://docs.microsoft.com/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).
29+
To install Homebrew and Python, the ODBC driver and SQLCMD, and the Python driver for SQL Server, use steps **1.2**, **1.3**, and **2.1** in [create Python apps using SQL Server on macOS](https://www.microsoft.com/sql-server/developer-get-started/python/mac/).
30+
31+
For further information, see [Microsoft ODBC Driver on macOS](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).
32+
33+
# [Ubuntu](#tab/ubuntu)
34+
35+
To install Python and other required packages, use `sudo apt-get install python python-pip gcc g++ build-essential`.
36+
37+
To install the ODBC driver, SQLCMD, and the Python driver for SQL Server, see [configure an environment for pyodbc Python development](/sql/connect/python/pyodbc/step-1-configure-development-environment-for-pyodbc-python-development#linux).
38+
39+
For further information, see [Microsoft ODBC Driver on Linux](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).
40+
41+
# [Windows](#tab/windows)
42+
43+
To install Python, the ODBC driver and SQLCMD, and the Python driver for SQL Server, see [configure an environment for pyodbc Python development](/sql/connect/python/pyodbc/step-1-configure-development-environment-for-pyodbc-python-development#windows).
44+
45+
For further information, see [Microsoft ODBC Driver](/sql/connect/odbc/microsoft-odbc-driver-for-sql-server).
46+
47+
---
48+
49+
> [!IMPORTANT]
50+
> The scripts in this article are written to use the **Adventure Works** database.
4251
43-
- **Ubuntu**: Install Python and other required packages with `sudo apt-get install python python-pip gcc g++ build-essential`. Download and install the ODBC driver, SQLCMD, and the Python driver for SQL Server. For instructions, see [Configure a development environment for pyodbc Python development](/sql/connect/python/pyodbc/step-1-configure-development-environment-for-pyodbc-python-development#linux).
52+
> [!NOTE]
53+
> You can optionally choose to use an Azure SQL managed instance.
54+
>
55+
> To create and configure, use the [Azure Portal](sql-database-managed-instance-get-started.md), [PowerShell](scripts/sql-database-create-configure-managed-instance-powershell.md), or [CLI](https://medium.com/azure-sqldb-managed-instance/working-with-sql-managed-instance-using-azure-cli-611795fe0b44), then setup [on-site](sql-database-managed-instance-configure-p2s.md) or [VM](sql-database-managed-instance-configure-vm.md) connectivity.
56+
>
57+
> To load data, see [restore with BACPAC](sql-database-import.md) with the [Adventure Works](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works) file, or see [restore the Wide World Importers database](sql-database-managed-instance-get-started-restore.md).
4458
45-
- **Windows**: Install Python, the ODBC driver and SQLCMD, and the Python driver for SQL Server. For instructions, see [Configure a development environment for pyodbc Python development](/sql/connect/python/pyodbc/step-1-configure-development-environment-for-pyodbc-python-development#windows).
59+
To further explore Python and the Azure SQL database, see [Azure SQL database libraries for Python](/python/api/overview/azure/sql), the [pyodbc repository](https://github.com/mkleehammer/pyodbc/wiki/), and a [pyodbc sample](https://github.com/mkleehammer/pyodbc/wiki/Getting-started).
4660

4761
## Get SQL server connection information
4862

0 commit comments

Comments
 (0)