Microsoft Launches mssql-python Driver Preview with macOS ARM Support and Advanced Connection Pooling Features

Posted by

Microsoft has launched the public preview of the mssql-python driver, enhancing Python connectivity with Microsoft SQL Server and Azure SQL. Now supporting macOS ARM devices and featuring robust connection pooling, this cross-platform tool invites developers to contribute and shape its future. Unique :

Microsoft Launches Public Preview of mssql-python Driver

If you’re a Python developer working with Microsoft SQL Server or Azure SQL, exciting news is here. Microsoft just announced the public preview of their new mssql-python driver, now available on GitHub. This driver promises better platform support and powerful features designed to streamline Python connectivity with SQL Server.

What’s New in mssql-python?

One of the biggest updates is native support for macOS ARM-based systems. This means developers using Apple Silicon (M1, M2 chips) can now connect seamlessly to Microsoft SQL Server. Microsoft is also working on Linux support, so cross-platform compatibility is expanding fast.

Another major feature is the introduction of a robust connection pooling system. Connection pooling can drastically improve app performance by reusing existing database connections instead of opening new ones repeatedly.

Connection Pooling Highlights

  • Connection Reuse: Keeps alive connections ready to reuse, boosting speed.
  • Max Pool Size: Limits the number of connections to manage resource use.
  • Idle Connection Pruning: Automatically disconnects idle connections after a timeout.
  • Multiple Pools: Supports separate pools for different databases or endpoints.
  • Thread Safety: Uses mutex locking for safe multi-threaded access.
  • Connection Health Checks: Validates connections before reuse to avoid errors.
  • Explicit Reset: Resets connections to clear session state.
  • Global Settings & Logging: Easy-to-configure defaults and detailed logs for debugging.

Note: Currently, connection pooling is available only on Windows. macOS and Linux support are coming soon.

What’s Next?

Microsoft is actively working on several enhancements:

  • Linux support for the driver and connection pooling.
  • Bulk Copy support to speed up large data transfers.
  • Microsoft Entra ID authentication (previously Azure AD) for macOS and Linux.

Try It Out and Join the Conversation

Microsoft encourages developers to test the driver and contribute feedback. You can find the project on GitHub, open issues, suggest features, and join discussions on the SQL Server Tech Community.

“We’re excited to announce the public preview of the mssql-python driver with new platform support and powerful features.” – Microsoft
“Join us and contribute in shaping the future of Python connectivity with SQL Server!” – Microsoft

For Python developers eager to leverage Microsoft SQL Server with improved performance and cross-platform support, this preview is a great opportunity to get involved early.

  • mssql-python driver now supports macOS ARM-based systems, catering to Apple Silicon users.
  • Connection pooling includes features like connection reuse, max pool size limits, and idle connection pruning.
  • Thread-safe pooling with mutex locking ensures reliable multi-threaded database access.
  • Upcoming updates will add Linux support, bulk copy, and Microsoft Entra ID authentication for macOS/Linux.
  • Developers are encouraged to try the driver, provide feedback, and join discussions on GitHub and SQL Server Tech Community.
  • From the New blog articles in Microsoft Community Hub



    Related Posts
    Unlock New Possibilities with Windows Server Devices in Intune!

      Windows Server Devices Now Recognized as a New OS in Intune Microsoft has announced that Windows Server devices are Read more

    Unlock the Power of the Platform: Your Guide to Power Platform at Microsoft Ignite 2022

    Microsoft Power Platform is leading the way in AI-generated low-code app development. With the help of AI, users can quickly Read more

    Unlock the Power of Microsoft Intune with the 2210 October Edition!

    Microsoft Intune is an enterprise mobility management platform that helps organizations manage mobile devices, applications, and data. The October edition Read more

    Unlock the Power of Intune 2.211: What’s New for November!

    Microsoft Intune has released its November edition, featuring new updates to help IT admins better manage their organization’s mobile devices. Read more