From programmer at paradigm-corp.com Fri Jun 1 14:18:22 2007 From: programmer at paradigm-corp.com (Programmer) Date: Fri Jun 1 19:18:28 2007 Subject: [egenix-users] errors for closed connections Message-ID: <611B913B025B1B4494E40781B4F6A61C022403A7@SERVER.paradigm-corp.com> Hi, The application I have built here no-longer needs connections to my local instance of SQL Server so I closed the connections for it. Then I stopped SQL Server. Now when Zope starts I get these errors and the startup takes a long time. eGenix mxODBC Zope DA: Problem establishing pooled DatabaseConnection 0 for : ('08001', 17, '[Mic rosoft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist or acces s denied.', 8227) eGenix mxODBC Zope DA: Problem establishing pooled DatabaseConnection 0 for : ('08001', 17, '[Micro soft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist or access denied.', 8227) Why is it still looking for the local SQL instance when all connection objects for it are closed? Should I just delete the connection objects? M. A. Ruberto (Programmer) Every piece of knowledge must have a single, unambiguous, authoritative representation within a system. -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman-archives/egenix-users/attachments/20070601/2f00e7a5/attachment.htm From mal at egenix.com Sat Jun 2 01:13:06 2007 From: mal at egenix.com (M.-A. Lemburg) Date: Sat Jun 2 00:13:15 2007 Subject: [egenix-users] errors for closed connections In-Reply-To: <611B913B025B1B4494E40781B4F6A61C022403A7@SERVER.paradigm-corp.com> References: <611B913B025B1B4494E40781B4F6A61C022403A7@SERVER.paradigm-corp.com> Message-ID: <466099F2.1000406@egenix.com> On 2007-06-01 19:18, Programmer wrote: > Hi, > > The application I have built here no-longer needs connections to my > local instance of SQL Server so I closed the connections for it. Then I > stopped SQL Server. Now when Zope starts I get these errors and the > startup takes a long time. > > eGenix mxODBC Zope DA: Problem establishing pooled DatabaseConnection 0 > for ducts.mxODBCZopeDA.ZopeDA.ZopeConnection "DSN=task_center" thread 2144, > 0 connec > tions, oid '\x00\x00\x00\x00\x00\x00\x19\xde' at 0x20e72f0>: ('08001', > 17, '[Mic > rosoft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist > or acces > s denied.', 8227) > eGenix mxODBC Zope DA: Problem establishing pooled DatabaseConnection 0 > for ducts.mxODBCZopeDA.ZopeDA.ZopeConnection "DSN=Materials" thread 1668, 0 > connecti > ons, oid '\x00\x00\x00\x00\x00\x00\x15\xc7' at 0x307f3b0>: ('08001', 17, > '[Micro > soft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist or > access > denied.', 8227) It's taking a long time because the ODBC driver is looking for the SQL Server instance and waits until it times out. > Why is it still looking for the local SQL instance when all connection > objects for it are closed? It's possible that a request to the connection object reopened them after you've closed them in the ZMI. The open/close state of the connection object is recorded in the ZODB, so it persists across restarts. You can use the lazy connect feature to prevent mxODBC Zope DA from opening them at connection object load time. > Should I just delete the connection objects? If you don't need the connections anymore that would also be a possibility. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jun 01 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX 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 From erik.myllymaki at aviawest.com Wed Jun 20 09:56:15 2007 From: erik.myllymaki at aviawest.com (Erik Myllymaki) Date: Wed Jun 20 17:56:48 2007 Subject: [egenix-users] mssql logins In-Reply-To: <464C3BF6.4020107@egenix.com> References: <464C36DE.4070204@free.fr> <464C3BF6.4020107@egenix.com> Message-ID: <46794E1F.5070408@aviawest.com> The way I understand it, when using a DSN with "NT authentication" the user that logs into mssql is the user that is running the script, regardless of what you supply in the connection string. is there a way around that? i.e. is it possible to use windows domain account explicitly in the connection string that will get used to connect instead of the yser that is running the script? thanks. From mal at egenix.com Wed Jun 20 20:48:30 2007 From: mal at egenix.com (M.-A. Lemburg) Date: Wed Jun 20 19:48:36 2007 Subject: [egenix-users] mssql logins In-Reply-To: <46794E1F.5070408@aviawest.com> References: <464C36DE.4070204@free.fr> <464C3BF6.4020107@egenix.com> <46794E1F.5070408@aviawest.com> Message-ID: <4679686E.8060005@egenix.com> On 2007-06-20 17:56, Erik Myllymaki wrote: > The way I understand it, when using a DSN with "NT authentication" the > user that logs into mssql is the user that is running the script, > regardless of what you supply in the connection string. > > is there a way around that? i.e. is it possible to use windows domain > account explicitly in the connection string that will get used to > connect instead of the yser that is running the script? This page lists all the possible options for the MS SQL Server connection string: http://msdn2.microsoft.com/en-us/library/aa177865(SQL.80).aspx Sounds like you'd want to experiment with "Trusted_Connection". -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jun 20 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2007-07-09: EuroPython 2007, Vilnius, Lithuania 18 days to go :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX 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 From mal at egenix.com Mon Jun 25 19:06:36 2007 From: mal at egenix.com (M.-A. Lemburg) Date: Mon Jun 25 18:06:42 2007 Subject: [egenix-users] Talks & presentations online Message-ID: <467FE80C.6000705@egenix.com> Hello, just wanted to let you know that we've put up a few of our conference talks and presentations on the web-site: http://www.egenix.com/library/presentations/ At EuroPython this year, we'll be giving talks on relational databases with Zope and show how mxTextTools can be put to good use for parsing languages. Regards, -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jun 25 2007) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ 2007-07-09: EuroPython 2007, Vilnius, Lithuania 13 days to go :::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX 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