Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.56 KB

File metadata and controls

44 lines (30 loc) · 1.56 KB
title Python drivers for SQL Server
description Connect to a SQL Database using one of the available Python drivers on your preferred operating system.
author dlevy-msft-sql
ms.author dlevy
ms.reviewer vanto, randolphwest
ms.date 08/07/2025
ms.service sql
ms.subservice connectivity
ms.topic conceptual

Python drivers for SQL Server

You can connect to a SQL Database using Python on Windows, Linux, or macOS.

Get started

There are several python SQL drivers available. The mssql-python driver is the only first-party driver. Choose one of the following drivers, and configure your development environment:

Documentation

For documentation, see Python documentation at Python.org.

Community

Samples

Explore samples that use Python to connect to a SQL database in the following articles:

Related content