What's the simplest way to access mssql with python or ironpython?

前端 未结 8 2068
忘了有多久
忘了有多久 2020-12-04 16:56

I\'ve got mssql 2005 running on my personal computer with a database I\'d like to run some python scripts on. I\'m looking for a way to do some really simple access on the d

8条回答
  •  感动是毒
    2020-12-04 17:37

    I use SQL Alchemy with cPython (I don't know if it'll work with IronPython though). It'll be pretty familiar to you if you've used Hibernate/nHibernate. If that's a bit too verbose for you, you can use Elixir, which is a thin layer on top of SQL Alchemy. To use either one of those, you'll need pyodbc, but that's a pretty simple install.

    Of course, if you want to write straight SQL and not use an ORM, you just need pyodbc.

提交回复
热议问题