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

# SQL-012: Insert Pa Policy Data

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

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:PolicyNum` | Input | bound from `PolicyNum` | — | Bound in `clsAuditPolicySchedulingDetail.BeforeInsert` (line 231) |
| `:IsDifficultToSchedule` | Input | bound from `m_IsDifficultToSchedule.ToY_N_String` | 1 | Bound in `clsAuditPolicySchedulingDetail.BeforeInsert` (line 230) |
| `:SchedulingNotes` | Input | bound from `m_SchedulingNotes` | 4000 | Bound in `clsAuditPolicySchedulingDetail.BeforeInsert` (line 229) |
| `:CreateUser` | Input | bound from `CreateUser` | 30 | Bound in `clsAuditPolicySchedulingDetail.BeforeInsert` (line 233) |
| `:CreateDate` | Input | bound from `CreateDate` | — | Bound in `clsAuditPolicySchedulingDetail.BeforeInsert` (line 232) |

## Tables

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

## Sample SQL

```sql
INSERT INTO
  PA_POLICY
VALUES
  (
    :PolicyNum,
    null,
    null,
    null,
    :IsDifficultToSchedule,
    :SchedulingNotes,
    null,
    :CreateUser,
    :CreateDate,
    null,
    null,
    0
  )
```

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

## Business rules
- [BR-032](../business-rules.md#br-032-rows-affected-must-equal-one)



> **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/clsAuditPolicySchedulingDetail.vb:388`
