Python & sql server

后端 未结 4 1283
粉色の甜心
粉色の甜心 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:49

    See pymssql It is a DB-API module for MS Sql Server and would be the most pythonic way. The documentation includes examples.

    If on a Windows OS you could also use OLEDB through COM which will not require any thing else to be installed on the client.

    Also if you use Iron Python you can use the .Net APIs

提交回复
热议问题