Is there any way to retrieve (and update) the actual stored procedure SQL text from a data dictionary?
A sample use case for this would be to write a replacement tool for the Advantage Data Architect. However at the moment I really need this to workaround a bug in ADS 9.1.
I imagine there must be something like:
EXECUTE PROCEDURE sp_GetStoredProcedureProperty('PROCNAME', 'SQLTEXT');
I found a system procedure called sp_ModifyProcedureProperty that can be used to modify some parts of a SP:
There is a system table in the dictionary called
system.storedprocedureswhich has a field namedSQL_Scriptthat does what I need.Example: