Python & sql server

后端 未结 4 1287
粉色の甜心
粉色の甜心 2020-12-24 02:15

What is the best way to access sql server from python is it DB-API ? Also could someone provide a such code using the DB-API how to connect to sql server from python and exc

4条回答
  •  無奈伤痛
    2020-12-24 02:42

    See pyodbc - Python Database API Specification v2.0 implementation. Works great.

    Additionally you can use it with other databases. If using with SQL Server 2008, make sure you use Native Driver if you need to support new DATE data types.

提交回复
热议问题