Since you are using pyodbc, I assume that you are not calling SPROC. I recommend creating your SQL string in python and then passing it SQL to execute.
import pyodbc dbconn = pyodbc.connect(ConnectionString) c = dbconn.cursor() j = 'table1'
source share