title | description | author | ms.author | ms.reviewer | ms.date | ms.service | ms.subservice | ms.topic |
---|---|---|---|---|---|---|---|---|
Python driver for SQL Server |
Connect to a SQL Database using one of the available Python drivers on your preferred operating system. |
David-Engel |
davidengel |
vanto |
09/12/2024 |
sql |
connectivity |
conceptual |
You can connect to a SQL Database using Python on Windows, Linux, or macOS.
There are several python SQL drivers available. However, Microsoft places its testing efforts and its confidence in pyodbc driver. Choose one of the following drivers, and configure your development environment:
For documentation, see Python documentation at Python.org.
Explore samples that use Python to connect to a SQL database in the following articles: