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

# SQL-017: Insert Pa Premium Audit Result Data

This statement supports the premium-audit library by insert Pa Premium Audit Result Data.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AuditSeqNum` | Input | bound from `AuditSeqNum` | — | Bound in `clsPremiumAuditResult.BeforeDelete` (line 129) |
| `:ResultXML` | Input | bound from `ResultXML` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 160) |
| `:CreateDate` | Input | bound from `m_CreateDate` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 161) |
| `:CreateUser` | Input | bound from `m_CreateUser` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 162) |
| `:UpdateDate` | Input | bound from `m_UpdateDate` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 163) |
| `:UpdateUser` | Input | bound from `m_UpdateUser` | — | Bound in `clsPremiumAuditResult.AddParameters` (line 164) |
| `:UpdateNum` | Input | bound from `m_UpdateNum` | — | Bound in `clsPremiumAuditResult.BeforeDelete` (line 130) |

## Tables

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

## Sample SQL

```sql
INSERT INTO
  PA_PREMIUM_AUDIT_RESULT
  (
    PA_AUDIT_SEQ_NUM,
    PA_PAR_XML_TEXT,
    CREATE_DATE,
    CREATE_USER,
    UPDATE_DATE,
    UPDATE_USER,
    UPDATE_NUM
  )
VALUES
  (
    :AuditSeqNum,
    :ResultXML,
    :CreateDate,
    :CreateUser,
    :UpdateDate,
    :UpdateUser,
    :UpdateNum
  )
```

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

## Business rules
- [BR-058](../business-rules.md#br-058-validtestaudittype-validtestauditdifference-validtestauditresult)
- [BR-069](../business-rules.md#br-069-an-audit-result-requires-an-existing-result-code)



> **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/clsPremiumAuditResult.vb:581`
