sqlresults = connSQL.execute(sql) for result in sqlresults: print result
James,Yes, the sequence does exists and I get an integer value back when I run the SQL in SQL*PLUS. The second part of the question deals calling a PL/SQL function from arcpy. If so, we can go that route. I do not get an ORA error from the code but the return value is giberish and unusable, as clearly I did not get the sequence value back from the call.In the meantime, I will look into cx_oracle but like I said I am useasy about hardcoing login credentials into code like the examples I have seen. That is why I would prefer to do this using arcpy because the credentials are obtained from the users sde files which are used connect to the database when they pick their input feature classes in the GP tool interface.-Jim
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.