---
title: SQL-021: Insert Provider Contact
summary: Inserts a new provider contact record into Oracle.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Provider
reference_type: package
---

# SQL-021: Insert Provider Contact

Inserts a new provider contact record into Oracle.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-021 |
| **Operation type** | Create |
| **Execution method** | Inline |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsProviderContact` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | `BeforeInsert` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :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` |
| :ProviderContactSeqNum | Input | Decimal | N/A | Value from `ProviderContactSeqNum` |
| :UpdateUser | Input | String | 30 | Value from `UpdateUser` |
| :UpdateNum | Input | Decimal | N/A | Value from `UpdateNum` |
| :UpdateDate | Input | Date | N/A | Value from `UpdateDate` |

## Tables

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

## Sample SQL

```sql
Insert into PROVIDER_CONTACT ( PROVIDER_CONTACT_SEQ_NUM, PROVIDER_LOCATION_SEQ_NUM, PROVIDER_CONTACT_CODE, NAME, EMAIL_ADDR, PHONE_NUM, UPDATE_USER, UPDATE_NUM, UPDATE_DATE ) Values ( :ProviderContactSeqNum, :ProviderLocationSeqNum, :ProviderContactCode, :Name, :EmailAddr, :PhoneNum, :UpdateUser, :UpdateNum, :UpdateDate)
```


## 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`
