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

# SQL-078: Update Pa Event Data

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

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-078 |
| **Operation type** | Update |
| **Execution method** | IDataRequest.SQLStatement (CommandType.Text) |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsAuditEvent` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate / AfterUpdate` |

## 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.BeforeDelete` (line 240) |

## Tables

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

## Sample SQL

```sql
UPDATE
  PA_EVENT
SET
  EVENT_DATE = :EventDate,
  EVENT_TEXT = :EventText,
  EVENT_USER_ID = :EventUserID,
  PA_AUDIT_SEQ_NUM = :AuditSeqNum,
  PA_EVENT_CODE = :EventCode,
  PA_EVENT_SEQ_NUM = :EventSeqNum
WHERE
  PA_EVENT.PA_EVENT_SEQ_NUM = :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:544`
