Skip to main content

Yet another MS SQLServer database driver

Project description

Yet another Python MS SQLServer database driver.

Support platform

  • Python 3.5+

Support database

  • MS SQLServer 2012, 2014, 2016, 2017
  • Microsoft Azure SQL Database

Installation

$ pip install minitds

Example

Query:

import minitds
conn = minitds.connect(host='localhost',
                    user='sa',
                    password='secret',
                    database='database_name')
cur = conn.cursor()
cur.execute('select foo, bar from baz')
for r in cur.fetchall():
   print(r[0], r[1])
conn.close()

Execute Procedure:

import minitds
conn = minitds.connect(host='localhost',
                    user='sa',
                    password='secret',
                    database='database_name')
cur = conn.cursor()
cur.callproc('something_proc', [123, 'ABC'])
conn.close()

Restrictions

  • Support connecting through SQL Server Authentication only.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for minitds, version 0.5.2
Filename, size File type Python version Upload date Hashes
Filename, size minitds-0.5.2.tar.gz (12.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page