python - How can I specify a cursor type for a recordset in pyodbc? -


i struggling python scripts use adodb classes via com. have concluded pyodbc module better purposes. however, there options available in adodb.recordset.open() method not see in pyodbc.

adodb.recordset.open() takes 5 arguments: query string, database connections, cursor type, lock type, , bitmask of text , execute options. typically, specify dynamic cursor (cursor type 2), optimistic locking (lock type 3) , query string no special execute options (option value 1). there option not controlled in open() method: cursor location. before calling open(), recordset's cursorlocation property can set aduseserver (value unknown) or aduseclient (3, if remember correctly).

while know of no instance in code company has ever written matter, still able make these choices through pyodbc. choices made?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -