Skip to main content

pymssql - DB-API interface to Microsoft SQL Server

https://travis-ci.org/pymssql/pymssql.png?branch=master http://img.shields.io/pypi/dm/pymssql.svg http://img.shields.io/pypi/v/pymssql.svg

A simple database interface for Python that builds on top of FreeTDS to provide a Python DB-API (PEP-249) interface to Microsoft SQL Server.

Detailed information on pymssql is available on the website:

http://pymssql.org

New development is happening on GitHub at:

https://github.com/pymssql/pymssql

There is a Google Group for discussion at:

https://groups.google.com/forum/?fromgroups#!forum/pymssql

Do you use pymssql?

Can you take a minute and fill out this survey to help us prioritize development tasks?

https://www.surveymonkey.com/s/KMQ8BM5

Bitdeli badge

Recent Changes

Version 2.1.1 - 2014-11-25 - Ramiro Morales

Features

  • Custom message handlers (GH-139)

    The DB-Library API includes a callback mechanism so applications can provide functions known as message handlers that get passed informative messages sent by the server which then can be logged, shown to the user, etc.

    _mssql now allows you to install your own message handlers written in Python. See the _msssql examples and reference sections of the documentation for more details.

    Thanks Marc Abramowitz.

  • Compatibility with Azure

    It is now possible to transparently connect to SQL Server instances accessible as part of the Azure cloud services.

  • Customizable per-connection initialization SQL clauses (both in pymssql and _mssql) (GH-97)

    It is now possible to customize the SQL statements sent right after the connection is established (e.g. 'SET ANSI_NULLS ON;'). Previously it was a hard-coded list of queries. See the _mssql.MSSQLConnection documentation for more details.

    Thanks Marc Abramowitz.

  • Added ability to handle instances of uuid.UUID passed as parameters for SQL queries both in pymssql and _mssql. (GH-209)

    Thanks Marat Mavlyutov.

  • Allow using SQL Server autocommit mode from pymssql at connection opening time. This allows e.g. DDL statements like DROP DATABASE to be executed. (GH-210)

    Thanks Marat Mavlyutov.

  • Documentation: Explicitly mention minimum versions supported of Python (2.6) and SQL Server (2005).

  • Incremental enhancements to the documentation.

Bug fixes

  • Handle errors when calling Stored Procedures via the .callproc() pymssql cursor method. Now it will raise a DB-API DatabaseException; previously it allowed a _mssql.MSSQLDatabaseException exception to surface.

  • Fixes in tds_version _mssql connections property value

    Made it work with TDS protocol version 7.2. (GH-211)

    The value returned for TDS version 7.1 is still 8.0 for backward compatibility (this is because such feature got added in times when Microsoft documentation labeled the two protocol versions that followed 7.0 as 8.0 and 9.0; later it changed them to 7.1 and 7.2 respectively) and will be corrected in a future release (2.2).

  • PEP 249 compliance (GH-251)

    Added type constructors to increase compatibility with other libraries.

    Thanks Aymeric Augustin.

  • pymssql: Made handling of integer SP params more robust (GH-237)

  • Check lower bound value when convering integer values from to Python to SQL (GH-238)

Internals

  • Completed migration of the test suite from nose to py.test.

  • Added a few more test cases to our suite.

  • Tests: Modified a couple of test cases so the full suite can be run against SQL Server 2005.

  • Added testing of successful build of documentation to Travis CI script.

  • Build process: Cleanup intermediate and ad-hoc anciliary files (GH-231, GH-273)

  • setup.py: Fixed handling of release tarballs contents so no extraneous files are shipped and the documentation tree is actually included. Also, removed unused code.

Version 2.1.0 - 2014-02-25 - Marc Abramowitz

Features

Bug Fixes

See ChangeLog for older history…

Release files for pymssql 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymssql 2.1.1
File Size Uploaded
pymssql-2.1.1.tar.gz 2.4 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pymssql 2.1.1
File
pymssql-2.1.1.win-amd64-py3.4.exe Details
pymssql-2.1.1.win-amd64-py3.3.exe Details
pymssql-2.1.1.win-amd64-py2.7.exe Details
pymssql-2.1.1.win-amd64-py2.6.exe Details
pymssql-2.1.1.win32-py3.4.exe Details
pymssql-2.1.1.win32-py3.3.exe Details
pymssql-2.1.1.win32-py2.7.exe Details
pymssql-2.1.1.win32-py2.6.exe Details
pymssql-2.1.1-py3.4-win-amd64.egg Legacy Egg format - - Details
pymssql-2.1.1-py3.4-win32.egg Legacy Egg format - - Details
pymssql-2.1.1-py3.3-win-amd64.egg Legacy Egg format - - Details
pymssql-2.1.1-py3.3-win32.egg Legacy Egg format - - Details
pymssql-2.1.1-py2.7-win-amd64.egg Legacy Egg format - - Details
pymssql-2.1.1-py2.7-win32.egg Legacy Egg format - - Details
pymssql-2.1.1-py2.6-win-amd64.egg Legacy Egg format - - Details
pymssql-2.1.1-py2.6-win32.egg Legacy Egg format - - Details
pymssql-2.1.1-cp34-none-win_amd64.whl CPython 3.4 none Windows x86-64 Details
pymssql-2.1.1-cp34-none-win32.whl CPython 3.4 none Windows x86-32 Details
pymssql-2.1.1-cp33-none-win_amd64.whl CPython 3.3 none Windows x86-64 Details
pymssql-2.1.1-cp33-none-win32.whl CPython 3.3 none Windows x86-32 Details
pymssql-2.1.1-cp27-none-win_amd64.whl CPython 2.7 none Windows x86-64 Details
pymssql-2.1.1-cp27-none-win32.whl CPython 2.7 none Windows x86-32 Details
pymssql-2.1.1-cp26-none-win_amd64.whl CPython 2.6 none Windows x86-64 Details
pymssql-2.1.1-cp26-none-win32.whl CPython 2.6 none Windows x86-32 Details

Total release size: 10.7 MB

Release files / pymssql-2.1.1.tar.gz

Download URL pymssql-2.1.1.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
f1a1601dc3322c785733c84639d8d640c7204f9db4eab5f2a5cc908fb157140f
BLAKE2b-256 checksum
How to use checksums
54852def48892af7236559b6da850c6a0a1751387c94b4280ec1cbfca8b4d75f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1.win-amd64-py3.4.exe

Download URL pymssql-2.1.1.win-amd64-py3.4.exe
Size 516.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ab74996f008049a5b50e82839f7c1ff9192e72245706de8ccf0192b4d08a4390
BLAKE2b-256 checksum
How to use checksums
73ecfc8c564bac25f38fb4b1a45bfa198eca7579e1ff0fc95e6eb681ac3123c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1.win-amd64-py3.3.exe

Download URL pymssql-2.1.1.win-amd64-py3.3.exe
Size 516.5 kB
Tags Source
SHA-256 checksum
How to use checksums
68fc0c867c983b3da1dcc24f61eb0ba81b07dac60f1ab0a72593149f82144a73
BLAKE2b-256 checksum
How to use checksums
bd359b9167d4ad3a0b7b204435e703907979d2a9a8480990526d4b875cd2aaea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1.win-amd64-py2.7.exe

Download URL pymssql-2.1.1.win-amd64-py2.7.exe
Size 521.0 kB
Tags Source
SHA-256 checksum
How to use checksums
967a3f9f4ffaa100c8cd9c500561799e239f8679fad417876cea29afe6397d6e
BLAKE2b-256 checksum
How to use checksums
16edf5608867c4f0c20afd743e798c136d253263364b1b280ccc8becf75768bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1.win-amd64-py2.6.exe

Download URL pymssql-2.1.1.win-amd64-py2.6.exe
Size 520.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f736d9bdb069d540b05ea6a2fdc254842f5cbf6ab18772579c38936b4d5620b3
BLAKE2b-256 checksum
How to use checksums
0bc03d1bdbe21b61383d46ea5f2c46489c1da53c4f5e09bf69a762846756bf8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1.win32-py3.4.exe

Download URL pymssql-2.1.1.win32-py3.4.exe
Size 457.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d0bb4756865279fba8f7c9dcb482cb8f72c32bf498728e364078402fb64cf761
BLAKE2b-256 checksum
How to use checksums
521d365e4c2ce125294f28fd856cdc5121ac1776cb05de6ef0b6be829686bc91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1.win32-py3.3.exe

Download URL pymssql-2.1.1.win32-py3.3.exe
Size 457.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e6b9e7da55dd9dbded9bac2936ee4db561c43431046fb1f3177038e99d16a4c9
BLAKE2b-256 checksum
How to use checksums
1ac1af4c2dd29703386473661a78c7a89fe106e7f56b9e74b337e0a6beba696b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1.win32-py2.7.exe

Download URL pymssql-2.1.1.win32-py2.7.exe
Size 462.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f684e7c141fa30013035ac85a71f821056eaaf16b04cc6fad610f7480d81b804
BLAKE2b-256 checksum
How to use checksums
613a517ddfb75b3fd4764fc0953b6b845d61f391d701f844402b37a7e85a5c70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1.win32-py2.6.exe

Download URL pymssql-2.1.1.win32-py2.6.exe
Size 462.6 kB
Tags Source
SHA-256 checksum
How to use checksums
38c60b3ce33948f0ad358424db4fd3531b649bc91c538bcd1b02ba623b5e73f3
BLAKE2b-256 checksum
How to use checksums
ad20fae4ec5315f7b8903a052b8d3767634e718258cc272d2a6c0aed50b647bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-py3.4-win-amd64.egg

Download URL pymssql-2.1.1-py3.4-win-amd64.egg
Size 282.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
40fbd202411befc9b6ab45a39a127333cb218b141b949f27835e977dd27e5880
BLAKE2b-256 checksum
How to use checksums
48a27f7a2814396c6805e26f15700c0845d3686df5c25418b2304b994601aab8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-py3.4-win32.egg

Download URL pymssql-2.1.1-py3.4-win32.egg
Size 255.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
6c0954bf64875280ca9e1a255151686a18ea819e4544ed35884a6685eb180b6e
BLAKE2b-256 checksum
How to use checksums
05d8c28c2f63fdb24f8db470827d69c3cb72545e3d15356fa43d113e9ed8aa60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-py3.3-win-amd64.egg

Download URL pymssql-2.1.1-py3.3-win-amd64.egg
Size 283.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
36b414c0e714fc8c562d2ba39fbb9c0cb74526fc955bc9b471ad9554ca6f7439
BLAKE2b-256 checksum
How to use checksums
4ca468287f92b580da351c3874c06a53ad17e263409a5a2a7baed442d68bc25d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-py3.3-win32.egg

Download URL pymssql-2.1.1-py3.3-win32.egg
Size 255.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
1c912e71be14b12c1527e72a7d3d7213fd5b1b4dc26892ee9b4347c4755e6be5
BLAKE2b-256 checksum
How to use checksums
4f30837b7f3563c7418bf98be77cde095dc18ab28828fdaffee3a708cae8e0a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-py2.7-win-amd64.egg

Download URL pymssql-2.1.1-py2.7-win-amd64.egg
Size 285.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
61bfeae0722e6f86f2ec5bedec10d3ed6d3d3ef0ffd8aff70a0c7b93debf0b35
BLAKE2b-256 checksum
How to use checksums
7229147ffeb036d5c2d307d2334ce106dbeeda4dca5938254a39f74eaf46a5bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-py2.7-win32.egg

Download URL pymssql-2.1.1-py2.7-win32.egg
Size 254.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
13c6e2213bc7b3dcd973573dd5f093e61789d946f0c983c94c60a3b23df7ebd2
BLAKE2b-256 checksum
How to use checksums
29bc47f22e51dbabbafd16cab2766a4b2734484a89c8693489c0f7b2d28417e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-py2.6-win-amd64.egg

Download URL pymssql-2.1.1-py2.6-win-amd64.egg
Size 285.7 kB
Tags Egg
SHA-256 checksum
How to use checksums
d4a6a0e6cdc8d9aabe34f98266a7d9531ed5d33170bcf82a23c11519c0a7dbf9
BLAKE2b-256 checksum
How to use checksums
0b29067890166433e9df2c88853052f3409efcb812351f169c4f9e9ac0a1f6de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-py2.6-win32.egg

Download URL pymssql-2.1.1-py2.6-win32.egg
Size 255.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
17067bfa7bb3ef9132d11e80114cdc258b4ae6d01133504a9ef10e901137779c
BLAKE2b-256 checksum
How to use checksums
343b3dd6cd81513a62fc97e454bc78462f35a12af77b73d40426a31876e4d3ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-cp34-none-win_amd64.whl

Download URL pymssql-2.1.1-cp34-none-win_amd64.whl
Size 286.3 kB
Tags CPython 3.4 Windows x86-64
SHA-256 checksum
How to use checksums
c58cf10ca81b24529f26c6acfaf150b3a98e9e65d5c869865a38c716a99e7ee5
BLAKE2b-256 checksum
How to use checksums
8e740fcf266a601016b996310712239b3cad583a60576c4db6b38841f9514630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-cp34-none-win32.whl

Download URL pymssql-2.1.1-cp34-none-win32.whl
Size 259.0 kB
Tags CPython 3.4 Windows x86-32
SHA-256 checksum
How to use checksums
f424277807c628bc5d86bb03fe076271cfad1c71a20be6b97ff08d70f4d274f4
BLAKE2b-256 checksum
How to use checksums
0cde9b85c5ad399eeff7c742c4a39f2f679dc529ec769d6597c3388312830676
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-cp33-none-win_amd64.whl

Download URL pymssql-2.1.1-cp33-none-win_amd64.whl
Size 286.4 kB
Tags CPython 3.3 Windows x86-64
SHA-256 checksum
How to use checksums
6324eadbda3fa2aeed5a9c4ad4d81fb030f3f5c7be4dc43c401c1ebb02bdacaa
BLAKE2b-256 checksum
How to use checksums
bd7151ab0fffb2b5c18fdf708e111d21f26bd8d55b80c08f4eb10d630fe15d32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-cp33-none-win32.whl

Download URL pymssql-2.1.1-cp33-none-win32.whl
Size 259.0 kB
Tags CPython 3.3 Windows x86-32
SHA-256 checksum
How to use checksums
107f43403fafcac360f39aff13a141686a0fc9befb8973e5dfadd814e86d1fc0
BLAKE2b-256 checksum
How to use checksums
317e4bee86a8b20e08bedd7d0a9712d5f0124578dd6a5d91f2faf375492ecd1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-cp27-none-win_amd64.whl

Download URL pymssql-2.1.1-cp27-none-win_amd64.whl
Size 289.4 kB
Tags CPython 2.7 Windows x86-64
SHA-256 checksum
How to use checksums
c22ba3ed34f05d3ec9e0ab7c47d3a33098bf5c8a61f31d8dc600a18e533f16ef
BLAKE2b-256 checksum
How to use checksums
7f6f945e370f4825ae2af65fd3974c911366be9fa19b6b812a513b722111f133
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-cp27-none-win32.whl

Download URL pymssql-2.1.1-cp27-none-win32.whl
Size 258.2 kB
Tags CPython 2.7 Windows x86-32
SHA-256 checksum
How to use checksums
be91e58a74c2d26b6131ed03be4a1cfc9d4410c2d4fe301288ae5983fc0fa6ca
BLAKE2b-256 checksum
How to use checksums
f62aa362b7cf1e60afd068cca9db3a60a50ca25575bbbdf9664255bc0f79cc00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-cp26-none-win_amd64.whl

Download URL pymssql-2.1.1-cp26-none-win_amd64.whl
Size 289.2 kB
Tags CPython 2.6 Windows x86-64
SHA-256 checksum
How to use checksums
8d7cd7c9df592c3fb52b2eb41afbced5740061a1c24caf57534d755d72f3cd6f
BLAKE2b-256 checksum
How to use checksums
9d189e7b9f0ffc8dd07ea5eb6440ab2e2d7699ed87efbab5b10d4eb4672d3d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pymssql-2.1.1-cp26-none-win32.whl

Download URL pymssql-2.1.1-cp26-none-win32.whl
Size 258.7 kB
Tags CPython 2.6 Windows x86-32
SHA-256 checksum
How to use checksums
7a644e8737ac89fb49f3e44be53a9c56baf60631c7d8e15bd068e1c9f16252f4
BLAKE2b-256 checksum
How to use checksums
2d6ca64abe073110d565e2a4b00f27261862838d20ce2ca8ff3f95cf21e86e80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.3.8

49 release files

2.3.7

41 release files

2.3.6

41 release files

2.3.5

41 release files

2.3.2

58 release files

2.3.1

81 release files

2.2.9

58 release files

2.2.8

32 release files

2.2.7

61 release files

2.2.6

50 release files

2.2.5

51 release files

2.2.4

51 release files

2.2.3

45 release files

2.2.2

42 release files

2.2.1

42 release files

2.1.5

29 release files

2.1.4

23 release files

2.1.3

17 release files

2.1.2

9 release files

This release

2.1.1 This release

25 release files

2.1.0

23 release files

2.0.1

23 release files

2.0.0

23 release files

1.0.3

6 release files

1.0.2

5 release files

1.0.1

5 release files

1.0.0

4 release files

0.7.4

0.7.1

0.6.0

0.5.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page