---
title: Insert Pa Event Data
summary: SQL-006
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Audit.Premium
reference_type: package
---

# SQL-006: Insert Pa Event Data

This statement supports the premium-audit library by insert Pa Event Data.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-006 |
| **Operation type** | Insert |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditEvent` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | `BeforeInsert / AfterInsert` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:EventDate` | Input | bound from `EventDate` | — | Bound in `clsAuditEvent.BeforeInsert` (line 264) |
| `:EventText` | Input | bound from `m_EventText` | 100 | Bound in `clsAuditEvent.BeforeInsert` (line 268) |
| `:EventUserID` | Input | bound from `EventUserID` | 30 | Bound in `clsAuditEvent.BeforeInsert` (line 265) |
| `:AuditSeqNum` | Input | bound from `AuditSeqNum` | — | Bound in `clsAuditEvent.BeforeInsert` (line 266) |
| `:EventCode` | Input | bound from `EventCode` | 5 | Bound in `clsAuditEvent.BeforeInsert` (line 267) |
| `:EventSeqNum` | Input | bound from `EventSeqNum` | — | Bound in `clsAuditEvent.BeforeInsert` (line 271) |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [`PA_EVENT`](../database-tables.md#pa_event) | INSERT | See sample SQL. |

## Sample SQL

```sql
INSERT INTO
  PA_EVENT
  (
    EVENT_DATE,
    EVENT_TEXT,
    EVENT_USER_ID,
    PA_AUDIT_SEQ_NUM,
    PA_EVENT_CODE,
    PA_EVENT_SEQ_NUM
  )
VALUES
  (
    :EventDate,
    :EventText,
    :EventUserID,
    :AuditSeqNum,
    :EventCode,
    :EventSeqNum
  )
```

## Operations and processes
- [Save a premium audit](../operations/save-a-premium-audit.md)
- [Audit lifecycle status transitions](../operations/audit-lifecycle-status-transitions.md)

## Business rules
- [BR-067](../business-rules.md#br-067-audit-event-code-must-be-valid)



> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Business/SAIF.Business.Policy.Audit.Premium/clsAuditEvent.vb:509`
