[Tutor] ODBC SQL Server Question

Kristina Ambert krissy.ambert at gmail.com
Fri Sep 18 17:08:38 CEST 2009


Hi,
Is anyone familiar with this error:
dbi.internal-error: [Microsoft][SQL Server Driver]Invalid cursor state in
EXEC
This error is triggered by the first sql statement call in an accessor
module which purpose is only to get data from a source module and feed it
into a database:

self.cursor.execute("SELECT CUSTID FROM Stories WHERE NAME= ?", (name))
I can't figure out what's causing it. I searched for the invalid cursor
state error online but most of it occurs on the fetchall statement not the
execute statement.

Any ideas?
Thanks!


-- 
Cheers,
Krissy
-----------------------------------------------------------------------
Testing the waters is always fun...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090918/00a0632a/attachment-0001.htm>


More information about the Tutor mailing list