From Derek.Wilson at RelayHealth.com Wed Aug 20 18:58:47 2014 From: Derek.Wilson at RelayHealth.com (Wilson, Derek S) Date: Wed, 20 Aug 2014 16:58:47 +0000 Subject: [DB-SIG] dsn syntax Message-ID: What is the proper syntax for DSN? Is it only host:database or is there some other way to specify a DSN? Thanks, Derek Wilson Implementation Analyst RelayHealth Scottsdale, AZ 85251 480.663.4767 Office derek.wilson at relayhealth.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy47 at halfcooked.com Thu Aug 21 01:06:10 2014 From: andy47 at halfcooked.com (Andy Todd) Date: Thu, 21 Aug 2014 09:06:10 +1000 Subject: [DB-SIG] dsn syntax In-Reply-To: References: Message-ID: <53F529E2.909@halfcooked.com> On 21/08/2014 2:58 am, 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? > > Thanks, > > *Derek Wilson * > > *Implementation Analyst* > > ** > > *Relay**Health* > > Scottsdale, AZ 85251 > > 480.663.4767 Office > > derek.wilson at relayhealth.com > > > > _______________________________________________ > DB-SIG maillist - DB-SIG at python.org > https://mail.python.org/mailman/listinfo/db-sig > Derek, Which Python database module are you using? The parameters passed to a .connect() method can vary quite a lot. Regards, Andy -- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ From mal at egenix.com Thu Aug 21 14:57:49 2014 From: mal at egenix.com (M.-A. Lemburg) Date: Thu, 21 Aug 2014 14:57:49 +0200 Subject: [DB-SIG] dsn syntax In-Reply-To: References: Message-ID: <53F5ECCD.2080301@egenix.com> 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. Regards, -- Marc-Andre Lemburg eGenix.com 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 http://www.egenix.com/company/contact/