---
title: "SQL-127: Update county collection"
summary: "Update county collection"
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy.Core
reference_type: package
---

# SQL-127: Update county collection

Update county collection in the context of `clsCountyCollection`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | bound from `Code` | 5 | Bound in `clsCountyCollection.BeforeUpdate` (line 579) |
| `:CountyName` | Input | unknown | - | Bind variable present in SQL text; no matching `AddParm` located - unknown** |
| `:State` | Input | bound from `State` | 2 | Bound in `clsCountyCollection.BeforeUpdate` (line 280) |
| `:OfficeCode` | Input | bound from `OfficeCode` | 5 | Bound in `clsCountyCollection.ConfigureRetrievalArguments` (line 465) |

## Tables

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

## Sample SQL

```sql
UPDATE
  COUNTY
SET
  COUNTY_CODE = :Code,
  COUNTY_NAME = :CountyName,
  STATE = :State,
  OFFICE_CODE = :OfficeCode
WHERE
```

## Business rules
- [BR-033: New sequence values for writable entities are obtained](../business-rules.md#br-033-new-sequence-values-for-writable-entities-are-obtained)

> **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.Core\clsCountyCollection.vb`
