You shouldn't need to set up an ODBC connection to get this to work. There may just be a syntax error in your code. I already see a few syntax error, so you might want to review your code again.
How are you executing the script? In IDLE?
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.