Hi all. I'm running a Pylons App using SA, Elixir connecting to a SQL
Server 2005 db via PYODBC. I'm getting a lot of database locks, & the
statements appear to be like this:

SET FMTONLY ON select table1.id from table1 where 1=2 SET FMTONLY OFF

I'm assuming that this is getting information about the model in
preparation for another query (perhaps an insert). It returns the
relevant column name, but no data , as 1 can obviously never equal 2.

I would like to explicitly make this a NOLOCK select, to prevent these
queries from generating locks, as these locks appear to be impacting
our application performance & server stability. Can anyone point me in
the direction of where such a change could be made?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to