.. python-tds documentation master file, created by
   sphinx-quickstart on Sun Apr 28 23:59:50 2013.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Pytds - Microsoft SQL Server database adapter for Python
========================================================

Pytds is the top to bottom pure Python TDS implementation, that means cross-platform, and no dependency on ADO or FreeTDS.
It supports large parameters (>4000 characters), MARS, timezones, new date types (datetime2, date, time, datetimeoffset).
Even though it is implemented in Python performance is comparable to ADO and FreeTDS bindings.

It also supports Python 3.

.. rubric:: Contents

.. toctree::
    :maxdepth: 2

    pytds
    extensions

Connection to Mirrored Servers
==============================

When MSSQL server is setup with mirroring you should connect to it using two parameters of :func:`pytds.connect`, one parameter is ``server``
this should be a main server and parameter ``failover_partner`` should be a mirror server.
See also `MSDN article <http://msdn.microsoft.com/en-us/library/ms175484.aspx>`_.

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

