Skip to main content

A way to run queries and execute commands against an MSSQL database.

Project description

# mssql_cli
A way to run queries and execute commands against an MSSQL database.


## Code Example
```python
from mssql_cli import DBRead, DBWrite

read_connection = DBRead(host='some_host', user='some_user', password='some_password', database='some_database')
write_connection = DBWrite(host='some_host', user='some_user', password='some_password', database='some_database')

results = read_connection.query("SELECT * FROM some_table")
more_results = write_connection.query("SELECT * FROM some_table")
write_connection.execute("INSERT INTO some_table VALUES ('some_data', 'some_more_data')")

read_connection.close()
write_connection.close()
```

## Motivation
This library exists to run queries and execute commands against an MSSQL database.

## Installation
This package requires pymssql, which has a dependency on FreeTDS. Instructions on installing FreeTDS can be found here: http://pymssql.org/en/latest/freetds.html.

pip install mssql_cli

## License
MIT

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

mssql_cli-0.2.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file mssql_cli-0.2.tar.gz.

File metadata

  • Download URL: mssql_cli-0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mssql_cli-0.2.tar.gz
Algorithm Hash digest
SHA256 5aa48724e2456d2ee5cc107c2146e47edc586489c96b2bd01290f39bcd7b303f
MD5 5ba2970797b0692a4def034ee444f4a0
BLAKE2b-256 e7122d7eafeb644c1cb96d114ff61485fe4460a28c862d4f28aca5473224beab

See more details on using hashes here.

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