Set Execution User
A SQL procedure can have its execution user modified.ALTER PROCEDURE SET EXECUTE AS Syntax
Examples
To set the execution user of thesqlp_ea SQL procedure to spuser:
ALTER PROCEDURE SET EXECUTE AS Example
Set Execute Mode
The refresh mode of a SQL procedure can be modified.ALTER PROCEDURE SET EXECUTE MODE Syntax
Parameters
EXECUTE FOR EVERY
EXECUTE FOR EVERY
Specify an interval in seconds, minutes, hours, or days at which the SQL procedure should be
executed.By default, the first execution interval will be one interval’s worth of time from the point at
which the SQL procedure alteration was requested.
STARTING AT
STARTING AT
Specify a date or timestamp at which refresh cycles should begin.
STOP AFTER
STOP AFTER
Specify a date, timestamp, or time interval after which refresh cycles should end.
Examples
To alter thesqlp_em SQL procedure to execute every 6 hours:
ALTER PROCEDURE Set Execution Mode Example
ALTER PROCEDURE Set Execution Start/Stop Example