GithubHelp home page GithubHelp logo

doytsujin / pymssql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pymssql/pymssql

0.0 1.0 0.0 10.69 MB

Official home for the pymssql source code.

Home Page: https://pymssql.readthedocs.io/en/latest/

License: GNU Lesser General Public License v2.1

Python 91.07% Shell 2.63% C 0.43% Smarty 0.24% PowerShell 3.83% Batchfile 1.46% Dockerfile 0.34%

pymssql's Introduction

pymssql - DB-API interface to Microsoft SQL Server

image

image

image

image

image

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:

pymssql.readthedocs.io

New development is happening on GitHub at:

github.com/pymssql/pymssql

There is a Google Group for discussion at:

groups.google.com

Getting started

pymssql wheels are available from PyPi. To install it run:

pip install pymssql

Most of the times this should be all what's needed. The official pymssql wheels bundle a static copy of FreeTDS and have SSL support so they can be used to connect to Azure.

Basic example

conn = pymssql.connect(server, user, password, "tempdb")
cursor = conn.cursor(as_dict=True)

cursor.execute('SELECT * FROM persons WHERE salesrep=%s', 'John Doe')
for row in cursor:
    print("ID=%d, Name=%s" % (row['id'], row['name']))

conn.close()

pymssql's People

Contributors

msabramo avatar ramiro avatar termim avatar rsyring avatar bladams avatar skinowski avatar simonstjg avatar damoxc avatar erosennin avatar epa avatar jpgimenez avatar sietse avatar johnnymo87 avatar mavlyutov avatar aaugustin avatar bitdeli-chef avatar daleevans avatar dm0- avatar stsci-sienkiew avatar mpagel avatar ph89 avatar summonholmes avatar simonbiggs avatar mikhailsidorov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.