1

I am running

cursor.execute("""{call myStoredProcedure('abc')}""")

I get the following error:

Error: ('HY000', "[HY000] [Teradata][ODBC Teradata Driver][Teradata Database] 'myStoredProcedure' is not a macro.  (-3855) (SQLExecDirectW)")

Why is Teradata thinking that myStoredProcedure is macro and not a stored procedure?

I am able to run the usual select commands on the database. I can also run the stored procedure from the Teradata SQL Assisstant.

web_ninja
  • 2,351
  • 3
  • 22
  • 43

1 Answers1

3

Try it without the curly braces:

cursor.execute("""call myStoredProcedure('abc')""")

And/or check the setting for the DisableCALLToEXECConversion option

dnoeth
  • 59,503
  • 4
  • 39
  • 56