Skip to main content
Alters the configuration of an existing SQL procedure. The following facets of a SQL procedure can be altered:

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 the sqlp_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

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

Specify a date or timestamp at which refresh cycles should begin.

STOP AFTER

Specify a date, timestamp, or time interval after which refresh cycles should end.

Examples

To alter the sqlp_em SQL procedure to execute every 6 hours:
ALTER PROCEDURE Set Execution Mode Example
To alter a SQL procedure to execute every minute in January, 2026:
ALTER PROCEDURE Set Execution Start/Stop Example