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

# SQL-079: Update Pa Auditor Data

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

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AssignFlag` | Input | bound from `m_AssignFlag` | 1 | Bound in `clsAuditor.BeforeUpdate` (line 499) |
| `:AuditorAssigneeID` | Input | bound from `m_AuditorAssigneeID` | 10 | Bound in `clsAuditor.BeforeUpdate` (line 504) |
| `:AuditorEmailAddr` | Input | bound from `m_AuditorEmailAddr` | 40 | Bound in `clsAuditor.BeforeUpdate` (line 505) |
| `:AuditorName` | Input | bound from `AuditorName` | 65 | Bound in `clsAuditor.BeforeUpdate` (line 500) |
| `:AuditorShortName` | Input | bound from `AuditorShortName` | 20 | Bound in `clsAuditor.BeforeUpdate` (line 501) |
| `:FilterListFlag` | Input | bound from `m_FilterListFlag` | 1 | Bound in `clsAuditor.BeforeUpdate` (line 502) |
| `:MonthlyMaximumCount` | Input | bound from `m_MonthlyMaximumCount` | — | Bound in `clsAuditor.BeforeUpdate` (line 506) |
| `:ScheduleFlag` | Input | bound from `m_ScheduleFlag` | 1 | Bound in `clsAuditor.BeforeUpdate` (line 503) |
| `:UserID` | Input | bound from `m_UserID` | 30 | Bound in `clsAuditor.BeforeUpdate` (line 507) |
| `:VendorNumberREVIEWER_FLAG` | Input | unknown | — | Bind variable present in SQL text; no matching `AddParm` located** |
| `:ReviewerFlag` | Input | bound from `m_ReviewerFlag` | — | Bound in `clsAuditor.BeforeUpdate` (line 509) |
| `:ActiveReviewerFlag` | Input | bound from `m_ActiveReviewerFlag` | — | Bound in `clsAuditor.BeforeUpdate` (line 510) |
| `:AuditorID` | Input | bound from `MyCriteria.AuditorID` | 10 | Bound in `clsAuditor.BeforeUpdate` (line 513) |

## Tables

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

## Sample SQL

```sql
UPDATE
  PA_AUDITOR
SET
  ASSIGN_FLAG = :AssignFlag,
  AUDITOR_ASSIGNEE_ID = :AuditorAssigneeID,
  AUDITOR_EMAIL_ADDR = :AuditorEmailAddr,
  AUDITOR_NAME = :AuditorName,
  AUDITOR_SHORT_NAME = :AuditorShortName,
  FILTER_LIST_FLAG = :FilterListFlag,
  MONTHLY_MAXIMUM_COUNT = :MonthlyMaximumCount,
  SCHEDULE_FLAG = :ScheduleFlag,
  USER_ID = :UserID,
  VENDOR_NUM = :VendorNumberREVIEWER_FLAG = :ReviewerFlag ACTIVE_REVIEWER_FLAG = :ActiveReviewerFlag
WHERE
  PA_AUDITOR.PA_AUDITOR_ID = :AuditorID
```

## Operations and processes
- [Assign renewal (batch) audits to auditors](../operations/assign-renewal-batch-audits-to-auditors.md)
- [Assign off-cycle audits to auditors](../operations/assign-off-cycle-audits-to-auditors.md)
- [Assign an audit to an auditor](../operations/assign-an-audit-to-an-auditor.md)

## Business rules
- [BR-014](../business-rules.md#br-014-assignment-requires-matching-territory)
- [BR-018](../business-rules.md#br-018-monthly-max-blocks-renewal-assignments)
- [BR-055](../business-rules.md#br-055-validauditor)



> **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/clsAuditor.vb:854`
