Can someone please point me in the right direction of how I can connect to MS SQL Server with Python? What I want to do is read a text file, extract some values and then insert the values from the text file into a table in my Sql Server database. I am using Python 3.1.3, and it seems some of the modules I have come across in research online are not included in the library. Am I missing something? Is there a good 3rd party module I should know about. Any help would be greatly appreciated.I am using Windows. thanks
3 Answers
There are a bunch more SQL Server libraries listed on the Python wiki. At least mxODBC is fully ready for Python 3.1, but I haven't used it so I can't comment on its appropriateness...
Comments
3 Comments
cloud311
It looks like this module does not work with versions of python after 2.6 so far.
nikagra
Yes: "there is work in progress to support Python 3.0 and 3.1". I've found one more connector: link, how-to, one more link
nikagra
Here is using mssql from within python 2.5, but the article has been written in 2007, that's why may be Python 3 support