# Python Driver for SQL Server

Microsoft's Python driver for SQL Server and Azure SQL databases, providing direct database connectivity and Python DB-API 2.0 support.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Faster by Design: Performance engineering in the Microsoft JDBC Driver for SQL Server

DevFeed: [Faster by Design: Performance engineering in the Microsoft JDBC Driver for SQL Server](<https://devfeed.tech/articles/faster-by-design-performance-engineering-in-the-microsoft-jdbc-driver-for-sql-server-77202.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/java/faster-by-design-performance-engineering-in-the-microsoft-jdbc-driver-for-sql-server/>)

Author: Ananya Garg

Published: 2026-10-08T07:25:06Z

Content type: article

Language: en

Sources: [Microsoft for Java Developers](<https://devfeed.tech/sources/microsoft-for-java-developers.md>)

Topics: [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [Python Driver for SQL Server](<https://devfeed.tech/topics/python-driver-for-sql-server.md>), [sql-server](<https://devfeed.tech/topics/sql-server.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [azure](<https://devfeed.tech/tags/azure.md>), [batch-insert](<https://devfeed.tech/tags/batch-insert.md>), [database](<https://devfeed.tech/tags/database.md>), [driver](<https://devfeed.tech/tags/driver.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [java](<https://devfeed.tech/tags/java.md>), [jdbc](<https://devfeed.tech/tags/jdbc.md>), [mssql-jdbc-driver](<https://devfeed.tech/tags/mssql-jdbc-driver.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-engineering](<https://devfeed.tech/tags/performance-engineering.md>), [sql-server](<https://devfeed.tech/tags/sql-server.md>)

### AI overview

The Microsoft JDBC Driver for SQL Server has been optimized across ResultSet processing, memory allocation, bulk copy, parameter metadata, Always Encrypted, and authentication. The article describes profiling hot paths and reducing unnecessary decoding, conversions, allocations, and contention while maintaining correctness and application compatibility. It also notes that an authentication optimization is planned for an upcoming release.

### Source excerpt

A database driver sits on the critical path of many applications. When a frequently executed path performs unnecessary work, even a small amount of overhead can compound across millions of operations. Over the past several releases, we have systematically profiled frequently executed paths across the Microsoft JDBC Driver for SQL Server, identifying opportunities to improve [...] The post Faster by Design: Performance engineering in the Microsoft JDBC Driver for SQL Server appeared first on Microsoft for Java Developers.

## SQLAlchemy 2.1 brings built-in support for mssql-python

DevFeed: [SQLAlchemy 2.1 brings built-in support for mssql-python](<https://devfeed.tech/articles/sqlalchemy-2-1-brings-built-in-support-for-mssql-python-61032.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/azure-sql/sqlalchemy-2-1-brings-built-in-support-for-mssql-python/>)

Author: Matt Hyon, David Levy

Published: 2026-09-28T16:02:00Z

Content type: release

Language: en

Sources: [Azure SQL Dev Corner](<https://devfeed.tech/sources/azure-sql-dev-corner.md>)

Topics: [SQLAlchemy](<https://devfeed.tech/topics/sqlalchemy.md>), [Python Driver for SQL Server](<https://devfeed.tech/topics/python-driver-for-sql-server.md>), [Python Driver for Azure SQL](<https://devfeed.tech/topics/python-driver-for-azure-sql.md>)

Tags: [azure-sql](<https://devfeed.tech/tags/azure-sql.md>), [drivers](<https://devfeed.tech/tags/drivers.md>), [python](<https://devfeed.tech/tags/python.md>), [python-driver-for-sql-server](<https://devfeed.tech/tags/python-driver-for-sql-server.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sql-server](<https://devfeed.tech/tags/sql-server.md>), [sql-server-2025](<https://devfeed.tech/tags/sql-server-2025.md>), [sqlalchemy](<https://devfeed.tech/tags/sqlalchemy.md>)

### AI overview

SQLAlchemy 2.1 is generally available with a built-in first-party dialect for Microsoft's mssql-python driver. It supports SQL Server and Azure SQL through SQLAlchemy's ORM and Core APIs, with simpler driver setup, Microsoft Entra authentication options, and continued use of Alembic for schema migrations.

### Source excerpt

We're pleased to share that SQLAlchemy 2.1.0 is now generally available, with built-in support for mssql-python, Microsoft's Python driver for SQL Server. You can now use it with SQLAlchemy's ORM and Core APIs through the first-party mssql+mssqlpython dialect. If SQLAlchemy is already part of how you build, we want this to feel like a natural [...] The post SQLAlchemy 2.1 brings built-in support for mssql-python appeared first on Azure SQL Dev Corner.

## Introducing Apache Arrow Support in mssql-python

DevFeed: [Introducing Apache Arrow Support in mssql-python](<https://devfeed.tech/articles/introducing-apache-arrow-support-in-mssql-python-20347.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/python/introducing-apache-arrow-support-in-mssql-python/>)

Author: Saumya Garg

Published: 2026-05-04T04:33:00Z

Content type: release

Language: en

Sources: [Microsoft Python Engineering](<https://devfeed.tech/sources/microsoft-python-engineering.md>)

Topics: [apache-arrow](<https://devfeed.tech/topics/apache-arrow.md>), [Python Driver for SQL Server](<https://devfeed.tech/topics/python-driver-for-sql-server.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [abi](<https://devfeed.tech/tags/abi.md>), [all](<https://devfeed.tech/tags/all.md>), [apache-arrow](<https://devfeed.tech/tags/apache-arrow.md>), [arrow](<https://devfeed.tech/tags/arrow.md>), [away](<https://devfeed.tech/tags/away.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-sql](<https://devfeed.tech/tags/azure-sql.md>), [blog](<https://devfeed.tech/tags/blog.md>), [buffer](<https://devfeed.tech/tags/buffer.md>), [build](<https://devfeed.tech/tags/build.md>), [client-driver](<https://devfeed.tech/tags/client-driver.md>), [data](<https://devfeed.tech/tags/data.md>), [developers](<https://devfeed.tech/tags/developers.md>), [faster](<https://devfeed.tech/tags/faster.md>), [fetching](<https://devfeed.tech/tags/fetching.md>), [gc](<https://devfeed.tech/tags/gc.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [mssql](<https://devfeed.tech/tags/mssql.md>), [polars](<https://devfeed.tech/tags/polars.md>), [python](<https://devfeed.tech/tags/python.md>), [python-driver-for-azure-sql](<https://devfeed.tech/tags/python-driver-for-azure-sql.md>), [python-driver-for-sql-server](<https://devfeed.tech/tags/python-driver-for-sql-server.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sql-server](<https://devfeed.tech/tags/sql-server.md>), [sql-server-2025](<https://devfeed.tech/tags/sql-server-2025.md>), [support](<https://devfeed.tech/tags/support.md>)

### AI overview

mssql-python now supports fetching SQL Server data into Apache Arrow structures, avoiding creation of a Python object for every row. The excerpt explains that the C++ fetch loop can write values into typed column buffers and expose them through the Arrow C Data Interface, allowing Arrow-native libraries to access the memory without serialization, copying, or reparsing. It presents this as a faster, more memory-efficient path for Polars, Pandas, DuckDB, and other Arrow-native tools, with potential speed gains especially for temporal types; the excerpt cuts off before naming those types or detailing further benefits.

### Source excerpt

Reviewed by Sumit Sarabhai Fetching a million rows from SQL Server into a Polars DataFrame used to mean a million Python objects, a million GC allocations, and then throwing it all away to build a DataFrame. Not anymore. mssql-python now supports fetching SQL Server data directly as Apache Arrow structures - a faster and more [...] The post Introducing Apache Arrow Support in mssql-python appeared first on Microsoft for Python Developers Blog.

## Write SQL Your Way: Dual Parameter Style Benefits in mssql-python

DevFeed: [Write SQL Your Way: Dual Parameter Style Benefits in mssql-python](<https://devfeed.tech/articles/write-sql-your-way-dual-parameter-style-benefits-in-mssql-python-20356.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/python/write-sql-your-way-dual-parameter-style-benefits-in-mssql-python/>)

Author: Jahnvi Thakkar

Published: 2026-04-07T16:12:05Z

Content type: release

Language: en

Sources: [Microsoft Python Engineering](<https://devfeed.tech/sources/microsoft-python-engineering.md>)

Topics: [Python Driver for SQL Server](<https://devfeed.tech/topics/python-driver-for-sql-server.md>), [Python](<https://devfeed.tech/topics/python.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [sql-server](<https://devfeed.tech/topics/sql-server.md>), [Python Driver for Azure SQL](<https://devfeed.tech/topics/python-driver-for-azure-sql.md>)

Tags: [azure](<https://devfeed.tech/tags/azure.md>), [azure-sql](<https://devfeed.tech/tags/azure-sql.md>), [client-driver](<https://devfeed.tech/tags/client-driver.md>), [driver](<https://devfeed.tech/tags/driver.md>), [high-performance](<https://devfeed.tech/tags/high-performance.md>), [mssql](<https://devfeed.tech/tags/mssql.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [python](<https://devfeed.tech/tags/python.md>), [python-driver-for-azure-sql](<https://devfeed.tech/tags/python-driver-for-azure-sql.md>), [python-driver-for-sql-server](<https://devfeed.tech/tags/python-driver-for-sql-server.md>), [queries](<https://devfeed.tech/tags/queries.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sql-server](<https://devfeed.tech/tags/sql-server.md>), [sql-server-2025](<https://devfeed.tech/tags/sql-server-2025.md>)

### AI overview

mssql-python now accepts both qmark (`?` placeholders with a tuple or list) and pyformat (`%(name)s` placeholders with a dictionary), selected automatically from the parameter type. Existing qmark code needs no changes. For a dictionary, the driver finds named placeholders while skipping string literals, comments and bracketed identifiers; checks that each has a matching key; converts values into placeholder order, repeating values when a name is reused; then rewrites placeholders to `?` for ODBC. The excerpt presents named parameters as useful for complex queries, reusable values and dynamic filters, and notes compatibility with code using named parameters in other DB-API drivers.

### Source excerpt

Reviewed by: Sumit Sarabhai If you've been writing SQL in Python, you already know the debate: positional parameters (?) or named parameters (%(name)s)? Some developers swear by the conciseness of positional. Others prefer the clarity of named. With mssql-python, you no longer need to choose - we support both. We've added dual parameter style support to mssql-python, enabling both qmark and pyformat parameter styles in Python [...] The post Write SQL Your Way: Dual Parameter Style Benefits in mssql-python appeared first on Microsoft for Python Developers Blog.

## RAG Labs for NAF Autocon4

DevFeed: [RAG Labs for NAF Autocon4](<https://devfeed.tech/articles/naf-ac4-65984.md>)

Original publisher: [Read original article](<https://github.com/automateyournetwork/NAF_AC4>)

Published: 2025-10-27T12:00:00Z

Content type: tutorial

Language: en

Sources: [Automate Your Network](<https://devfeed.tech/sources/automate-your-network.md>)

Topics: [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [Postman CLI](<https://devfeed.tech/topics/postman-cli.md>), [Streamlit](<https://devfeed.tech/topics/streamlit.md>), [MSP MCP](<https://devfeed.tech/topics/msp-mcp.md>), [Python Driver for SQL Server](<https://devfeed.tech/topics/python-driver-for-sql-server.md>), [Homebrew](<https://devfeed.tech/topics/homebrew.md>), [pip](<https://devfeed.tech/topics/pip.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [cURL](<https://devfeed.tech/topics/curl.md>)

Tags: [cisco](<https://devfeed.tech/tags/cisco.md>), [cli](<https://devfeed.tech/tags/cli.md>), [homebrew](<https://devfeed.tech/tags/homebrew.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [openai](<https://devfeed.tech/tags/openai.md>), [project](<https://devfeed.tech/tags/project.md>), [pyats](<https://devfeed.tech/tags/pyats.md>), [python](<https://devfeed.tech/tags/python.md>), [python-3-10](<https://devfeed.tech/tags/python-3-10.md>), [rag](<https://devfeed.tech/tags/rag.md>)

### AI overview

This repository provides setup instructions and labs for a RAG session associated with NAF Autocon4. It requires Python 3.10.14 and describes using pyATS, Cisco network device sandboxes, Streamlit apps, and MCP server/client labs.

### Source excerpt

RAG Labs for NAF Autocon4