MS SQL Server/ODBC package for Python

Graham gsmith at oxfam.org.uk
Fri Apr 15 08:55:54 EDT 2005


Thanks Simon
I have just installed mxODBC and tried one of their samples.
Am getting an error on trying to import mx.ODBC

    ImportError: No module named mx.ODBC

After the install the mx folder has been place in my C:\Program Files\Plone
2\Python\lib\site-packages folder however when I browse the PythonPath and
look under Standard Python Library I can't see mx.

Any ideas what I mnay have done wrong?

many thanks
Graham


"Simon Brunning" <simon.brunning at gmail.com> wrote in message
news:mailman.1957.1113568143.1799.python-list at python.org...
On 4/15/05, Graham <gsmith at oxfam.org.uk> wrote:
> I need a SQL Server or ODBC package for Python.  Can anyone help please?
> Have search the Python packages under Database and there is no reference
to
> either SQL Server or ODBC.

Top of the line is probably mxODBC
(<http://www.egenix.com/files/python/mxODBC.html>). It's the Rolls
Royce of DB-API modules. It's not free for commercial use, but it's
worth every penny/cent/groat/whatever.

For commercial work where I've not been able to justify spending money
(in my bosses opinion at least), adodbapi
(<http://adodbapi.sourceforge.net/>) works a treat.

--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/





More information about the Python-list mailing list