Skip to content

Commit 9df9713

Browse files
committed
converted tabbed content to a table
1 parent 4d5e2eb commit 9df9713

1 file changed

Lines changed: 7 additions & 18 deletions

File tree

‎azure-sql/database/connect-query-python.md‎

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ms.reviewer:
1414
ms.date: 12/19/2020
1515
---
1616
# Quickstart: Use Python to query a database
17+
1718
[!INCLUDE[appliesto-sqldb-sqlmi](../includes/appliesto-sqldb-sqlmi-asa.md)]
1819

1920
In this quickstart, you use Python to connect to Azure SQL Database, Azure SQL Managed Instance, or Synapse SQL database and use T-SQL statements to query data.
@@ -29,28 +30,16 @@ To complete this quickstart, you need:
2930
[!INCLUDE[create-configure-database](../includes/create-configure-database.md)]
3031

3132
- [Python](https://python.org/downloads) 3 and related software
33+
3234

33-
# [macOS](#tab/macos)
34-
35-
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/).
36-
37-
For further information, see [Microsoft ODBC driver on macOS](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).
38-
39-
# [Ubuntu](#tab/ubuntu)
40-
41-
To install Python and other required packages, use `sudo apt-get install python python-pip gcc g++ build-essential`.
35+
|**Action**|**macOS**|**Ubuntu**|**Windows**|
36+
|----------|-----------|------------|---------|
37+
|Install the ODBC driver, 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/). This will also install install Homebrew and Python. |[Configure an environment for pyodbc Python development](/sql/connect/python/pyodbc/step-1-configure-development-environment-for-pyodbc-python-development#linux)|[Configure an environment for pyodbc Python development](/sql/connect/python/pyodbc/step-1-configure-development-environment-for-pyodbc-python-development#windows).|
38+
|Install Phython and other required packages| |Use `sudo apt-get install python python-pip gcc g++ build-essential`.| |
39+
|Further information|[Microsoft ODBC driver on macOS](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server) |[Microsoft ODBC driver on Linux](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server)|[Microsoft ODBC driver on Linux](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server)|
4240

43-
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).
4441

45-
For further information, see [Microsoft ODBC driver on Linux](/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).
4642

47-
# [Windows](#tab/windows)
48-
49-
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).
50-
51-
For further information, see [Microsoft ODBC driver](/sql/connect/odbc/microsoft-odbc-driver-for-sql-server).
52-
53-
---
5443
To further explore Python and the database in 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).
5544

5645
## Create code to query your database

0 commit comments

Comments
 (0)