db access

johnf jfabiani at yolo.com
Thu Dec 28 17:12:32 EST 2006


king kikapu wrote:

> Hi to all,
> 
> is there a way to use an RDBMS (in my case, SQL Server) from Python by
> using some built-in module of the language (v. 2.5) and through ODBC ??
> I saw some samples that use statements like "import dbi" or "import
> odbc" but neither modules (dbi, odbc) are present on my system...
> 
> Any hint(s) ??
> 
> Thanks in advance
Although others have suggested using ODBC or ADO I have a different
solution.  If you wanted a multi-platform I would use FreeTDS with
psmssql.py.  psmssql.py does support the DB API 2.0 although it does not
support any of the extendsions.  Works with Linux, Mac and Windows.

Johnf





More information about the Python-list mailing list