Before writing a CREATE EVENT TABLE statement:
- Read
references/parameters.mdto review all available parameters and their defaults. - For each parameter, decide whether the user's request implies a non-default value.
- Include only the parameters that differ from the default or that the user explicitly requested.
- Never use
CREATE OR REPLACE— always useCREATE EVENT TABLE IF NOT EXISTSwhere supported. - Event tables share a namespace with regular tables and views; ensure the chosen name does not conflict with existing objects in the same schema.
CHANGE_TRACKING = FALSEis the default; enable it only if the user explicitly needs to track changes via streams.- Do not add
CLUSTER BYunless the table is expected to be multi-terabyte or the user specifically requests it; clustering is not recommended for most event tables. DATA_RETENTION_TIME_IN_DAYSdefaults to 1; increase it only if the user requires a longer Time Travel window (max 90 days on Enterprise edition).- Using
OR REPLACEon an existing event table drops the old table and makes any existing streams on it stale — warn the user about this side effect if they ask about replacing an existing event table.