Skip to main content

Yet another SQLServer database driver

Project description

Yet another Python SQLServer database driver.

Requirements

  • Python 3.5

  • MS SQLServer 2012, 2014, 2016

Installation

It can install as package or module.

Install as a package

$ pip install minitds

Install as a module

$ cd $(PROJECT_HOME)
$ wget https://github.com/nakagami/minitds/raw/master/minitds/minitds.py

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()

Restrictions

  • Support SQL Server User Authentication only.

  • Not support Stored Procedure call now.

Project details


Download files

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

Source Distribution

minitds-0.3.2.tar.gz (11.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page