From robert at redcor.ch Thu Aug 31 13:49:20 2006 From: robert at redcor.ch (robert rottermann) Date: Thu Aug 31 12:49:30 2006 Subject: [egenix-users] access to MsSQL blocks Message-ID: <44F6BEB0.8080105@redcor.ch> hi there, using mxOdbc our database application embeded in zope often blocks when executing a simple statement as the following: query = "select fieldValue from tblATicketDetailDynamicForm \ where ticketDetailNoFk in (1683)" calling sql_q_nil(query) (from the following class) sometimes just never returns. The problem seems to be, that after a certain amount of queries MsSQL is in a state, that it does not allow any access to the querried database. what we do in our application is: - get a RedDbQuery object (class at the end of the posting) - execute the statement with RedDbQuery.sql_q_nil(query) - release the connection. this approach worked fine using MySQL. However we did not cross any OS bounderies and did not use ODBC. we are using: mxODBC Zope DA 1.0.8 License Information: 1 Zope Instance License for redcor [6522021#1] SuSE 9.3 UnixOdbc 2.8.8 freetds 0.64 for hints how to fix this problems I would be extreemly gratefull. robert class RedDbQuery: "All queries are routed through this class." def __init__( self ): self._connection = getConnection() #print 'getConnection() returns', _connection self._cursor = self._connection.cursor() #print 'cursor() returns', _cursor def dispose( self ): releaseConnection( self._connection, self._cursor ) def cursor( self ): return self._cursor # # query level zero -- the one and only query execution method: # def sql_q_nil( self, query, verbose = None ): "Generic SQL query, expecting no return." if verbose: print( query ) r = self._cursor.execute( query ) #print 'execute() returns', r return r more methods .. -------------- next part -------------- A non-text attachment was scrubbed... Name: robert.vcf Type: text/x-vcard Size: 200 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20060831/9ad48cc7/robert.vcf From support at egenix.com Thu Aug 31 14:19:28 2006 From: support at egenix.com (eGenix Support) Date: Thu Aug 31 13:19:44 2006 Subject: [egenix-users] access to MsSQL blocks In-Reply-To: <44F6BEB0.8080105@redcor.ch> References: <44F6BEB0.8080105@redcor.ch> Message-ID: Am 31.08.2006, 12:49 Uhr, schrieb robert rottermann : > mxODBC Zope DA 1.0.8 License Information: > 1 Zope Instance License for redcor [6522021#1] > SuSE 9.3 > UnixOdbc 2.8.8 > freetds 0.64 > for hints how to fix this problems I would be extreemly gratefull. Never heard of anything like this with mxODBC. You might get somewhere by checking the MS SQL logs but I would tip it is either a network or freetds problem or a combination and suggest you try one of the commercial ODBC bridges to see if that fixes the problem. Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ From robert at redcor.ch Thu Aug 31 14:46:03 2006 From: robert at redcor.ch (robert rottermann) Date: Thu Aug 31 13:46:27 2006 Subject: [egenix-users] access to MsSQL blocks In-Reply-To: References: <44F6BEB0.8080105@redcor.ch> Message-ID: <44F6CBFB.4010709@redcor.ch> thanks for your answer what commercial bridge would you suggest. we have ligthweigth acces from not many users. so nothing to expensive.. and easy to install :) thanks robert eGenix Support wrote: > Am 31.08.2006, 12:49 Uhr, schrieb robert rottermann : > >> mxODBC Zope DA 1.0.8 License Information: >> 1 Zope Instance License for redcor [6522021#1] >> SuSE 9.3 >> UnixOdbc 2.8.8 >> freetds 0.64 >> for hints how to fix this problems I would be extreemly gratefull. > > Never heard of anything like this with mxODBC. You might get somewhere > by checking the MS SQL logs but I would tip it is either a network or > freetds problem or a combination and suggest you try one of the > commercial ODBC bridges to see if that fixes the problem. > > Charlie > --Charlie Clark > eGenix.com > > Professional Python Services directly from the Source >>>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ > -------------- next part -------------- A non-text attachment was scrubbed... Name: robert.vcf Type: text/x-vcard Size: 200 bytes Desc: not available Url : /mailman-archives/egenix-users/attachments/20060831/806ca5a4/robert.vcf From support at egenix.com Thu Aug 31 14:54:19 2006 From: support at egenix.com (eGenix Support) Date: Thu Aug 31 13:54:24 2006 Subject: [egenix-users] access to MsSQL blocks In-Reply-To: <44F6CBFB.4010709@redcor.ch> References: <44F6BEB0.8080105@redcor.ch> <44F6CBFB.4010709@redcor.ch> Message-ID: Am 31.08.2006, 13:46 Uhr, schrieb robert rottermann : > thanks for your answer > what commercial bridge would you suggest. > we have ligthweigth acces from not many users. so nothing to expensive.. > and easy to install Well, you can try before you buy just to see if that solves the problem. We usually recommend Easysoft not just because they also do the unixODBC manager but also because they provide good support. http://www.easysoft.com/products/data_access/odbc_odbc_bridge/index.html Charlie -- Charlie Clark eGenix.com Professional Python Services directly from the Source >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/