RE> 1) Make sure there aren't any commits missing. (Unlikely)
I thought that commits are only required for calls that that modify
the DB, i.e. update, insert, delete...
Is this not the case?
RE> 2) Are you using multiple connections or cursors at the same
time?...
The provided code example is complete (my second post), it exhibits
the problem. I run it through eclipse with pydev so that I can break
point before the second fetch allowing me to manually create an entry
in the DB. I imagine the same problem would occur at the python
command line (I may try it).
I put the break point on the second occurrence of this line: cur =
db_cxn.cursor()
As you can see from the example code I'm connecting once at the start
and closing the connection once at the end.
I do create a new cursor, but the old one should be released at this
point and since I am only reading from the DB I don't think it is
necessary to perform a commit, or am I wrong?
I'm using Python 2.6 and PyODBC 2.1.8.