Maybe this has been addressed or not, but I can't seem to get my stored procedure to execute via LiveCode.
I know select statements work, but I can't do a select. I need the stored procedure . The stored procedure also takes parameters.
I can establish a connection to the database so that is not the issue.
Here is my code example:
Code: Select all
Local sqlScript
put "EXEC databaseName.schemaName.spName" && 'parameter1' & "," & 'parameter2' into sqlScript
put revOpenDataBase("ODBC","SQLReport",,dbUserName,dbUserPassword,"static") into dataBaseConnectionID
put revDataFromQuery(tab,cr,dataBaseConnectionID,sqlScript) into myVariable
Thanks for all the help!