r/SQLServer • u/dlevy-msft Microsoft Employee • 20d ago
Community Share mssql-python 1.17.0 released: bulk copy fixes, faster pool recovery and correct nextset() rowcounts
We just shipped 1.17.0. It's mostly bug fixes, and several of them came from issues and PRs filed by people in this community.
What changed
Bulk copy (
bulkcopy()/bulkcopy_arrow())- No longer breaks after a package upgrade
- Handles UTF-8 text correctly
- Fails early with a clear error when the destination name isn't supported
- Stops silently truncating high-precision datetime values
- Connection pool reuse: clean connections are returned and reused with less overhead
- Dead pooled connections: checkout gives up after the login timeout and opens a new connection, instead of hanging for many minutes
nextset()rowcount: each result in a multi-statement batch or stored procedure now reports its own row count. Before this fix, every result reported the count from the first statement.- PEP 249
Timestamp():microsecondis now optional, so the standard six-argument call works
Thanks to Jhonatas2, oscarrobertson, phelipelui, and austinaviv for the fixes.
pip install --upgrade mssql-pythonWe'd love to hear what you think. What parts do you love and what parts are still missing for you?
3
Upvotes