Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: