Sebastiao Pereira takes a look at mssql-python:
Python can connect to SQL Server using drivers like
pyodbc
andpymssql
. However, Microsoft recently released a new Python driver called Python Driver for SQL Server ormssql-python
. Currently in preview, Microsoft describes it as “the only first-party driver.” So, what’s this new driver all about, and how do you use it? Learn how to configure Python to connect to SQL Server with this new driver.
My standard caveat applies: this looks pretty neat, assuming that Microsoft actually continues to support it. Sebastiao mentions that it requires Python 3.13, but the docs say 3.10 or later. If the former is true, it might be a while before a lot of shops actually use it. But if the latter is true, most Python installations should support the driver out of the box.