[DB-SIG] dsn syntax

M.-A. Lemburg mal at egenix.com
Thu Aug 21 14:57:49 CEST 2014

On 20.08.2014 18:58, Wilson, Derek S wrote:
> What is the proper syntax for DSN? Is it only host:database or is there some other way to specify a DSN?

As others have noted, this is database module dependent.

The Python DB-API does not mandate a particular syntax for the
DSN field, since databases typically have their own ideas of how to
specify the data source, e.g. this may be a data source registered
with an ODBC manager, a config file of a client lib, a plain
host name or even a file name.

Marc-Andre Lemburg

Professional Python Services directly from the Source  (#1, Aug 21 2014)
>>> Python Projects, Consulting and Support ...   http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ...       http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
2014-09-19: PyCon UK 2014, Coventry, UK ...                29 days to go

::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611

More information about the DB-SIG mailing list