I want to use the Alteryx input tool to get the definition of a stored procedure in a database (but not run the stored procedure). When I run this statement in Toad, I get a single cell that contains exactly the string I need. When I put in in my input tool, there is no error, but I get 0 results. Does anyone know how I can make this work, or a different way to get the definition of the stored procedure?
SELECT definition
FROM sys.sql_modules
WHERE object_id = object_id('stored procedure name')