---
title: SQL-069: Update Provider Contact
summary: Updates an existing provider contact record in Oracle.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Provider
reference_type: package
---

# SQL-069: Update Provider Contact

Updates an existing provider contact record in Oracle.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-069 |
| **Operation type** | Update |
| **Execution method** | Inline |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsProviderContact` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :ProviderContactSeqNum | Input | Decimal | N/A | Value from `ProviderContactSeqNum` |
| :ProviderLocationSeqNum | Input | Decimal | N/A | Value from `ProviderLocationSeqNum` |
| :ProviderContactCode | Input | String | 3 | Value from `ProviderContactCode` |
| :Name | Input | clsSmartString | 50 | Value from `m_Name` |
| :EmailAddr | Input | clsSmartString | 250 | Value from `m_EmailAddress` |
| :PhoneNum | Input | String | 23 | Value from `PhoneNumber` |
| :UpdateNum | Input | Decimal | N/A | Value from `m_UpdateNum` |
| :UpdateUser | Input | String | 30 | Value from `m_UpdateUser` |
| :UpdateDate | Input | Date | N/A | Value from `m_UpdateDate` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PROVIDER_CONTACT](../database-tables.md#provider_contact) | UPDATE | See business-object criteria for key columns. |

## Sample SQL

```sql
Update PROVIDER_CONTACT Set PROVIDER_CONTACT_SEQ_NUM = :ProviderContactSeqNum, PROVIDER_LOCATION_SEQ_NUM = :ProviderLocationSeqNum, PROVIDER_CONTACT_CODE = :ProviderContactCode, NAME = :Name, EMAIL_ADDR = :EmailAddr, PHONE_NUM = :PhoneNum, UPDATE_USER = :UpdateUser, UPDATE_NUM = UPDATE_NUM + 1, UPDATE_DATE = :UpdateDate Where PROVIDER_CONTACT.PROVIDER_CONTACT_SEQ_NUM = :ProviderContactSeqNum AND UPDATE_NUM = :UpdateNum
```


## Business rules
- [BR-009: Contacts require a type and a communication path](../business-rules.md#br-009-contacts-require-a-type-and-a-communication-path)

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Provider\clsProviderContact.vb`
