Using SQL Alchemy and pyodbc with IronPython 2.6.1

后端 未结 4 2013
孤城傲影
孤城傲影 2021-01-03 15:45

I\'m using IronPython and the clr module to retrieve SQL Server information via SMO. I\'d like to retrieve/store this data in a SQL Server database using SQL Alchemy, but am

4条回答
  •  爱一瞬间的悲伤
    2021-01-03 16:31

    its very likely that pyodbc is not compatible with IronPython, as it was designed for usage with cPython.

    IronPython certainly has some kind of ODBC (actually, ADO.net seems like where its at) compatibility built into it, but a DBAPI would be the most direct way to get SQLAlchemy working with it.

    So here's some MS-specific non-DBAPI example: http://www.ironpython.info/index.php/Accessing_SQL_Server someone talking about DBAPI in 2006: http://hex-dump.blogspot.com/2006/10/ironpython-and-adonet-part-2.html something a little more recent: http://bitbucket.org/jdhardy/adonet-dbapi/

    It says something that MS pours however much money into IronPython but zero into a compliant DBAPI driver.

提交回复
热议问题