---
title: SQL-036: Insert Provider Tax I D
summary: Inserts a new provider tax i d record into Oracle.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Provider
reference_type: package
---

# SQL-036: Insert Provider Tax I D

Inserts a new provider tax i d record into Oracle.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :TaxIDDisplayDescr | Input | String | 11 | Value from `TaxIDDisplayDescr` |
| :ProviderSeqNum | Input | Decimal | N/A | Value from `ProviderSeqNum` |
| :RegisteredName | Input | String | 60 | Value from `RegisteredName` |
| :RegisteredNameUpperCase | Input | String | 60 | Value from `RegisteredNameUpperCase` |
| :EffDate | Input | Date | N/A | Value from `EffDate` |
| :Report1099Flag | Input | String | 1 | Value from `Report1099Flag` |
| :ForeignAddressFlag | Input | String | 1 | Value from `ForeignAddressFlag` |
| :ExpDate | Input | clsSmartDate | N/A | Value from `m_ExpDate` |
| :W9SentDate | Input | clsSmartDate | N/A | Value from `m_W9SentDate` |
| :W9ReceivedDate | Input | clsSmartDate | N/A | Value from `m_W9ReceivedDate` |
| :CityName | Input | clsSmartString | 25 | Value from `m_CityName` |
| :AddressLine1 | Input | clsSmartString | 40 | Value from `m_AddressLine1` |
| :AddressLine2 | Input | clsSmartString | 40 | Value from `m_AddressLine2` |
| :StateCode | Input | clsSmartString | 2 | Value from `m_StateCode` |
| :ZipCode | Input | clsSmartDecimal | N/A | Value from `m_ZipCode` |
| :ZipCodeExt | Input | clsSmartString | 4 | Value from `m_ZipCodeExt` |
| :AddressLine3 | Input | clsSmartString | 40 | Value from `m_AddressLine3` |
| :AddressLine4 | Input | clsSmartString | 40 | Value from `m_AddressLine4` |
| :CountryCode | Input | clsSmartString | 2 | Value from `m_CountryCode` |
| :UpdateDate | Input | Date | N/A | Value from `UpdateDate` |
| :UpdateNum | Input | Decimal | N/A | Value from `UpdateNum` |
| :UpdateUser | Input | String | 30 | Value from `UpdateUser` |
| :TaxID | Input | String | 9 | Value from `TaxID` |

## Tables

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

## Sample SQL

```sql
Insert into PROVIDER_TAX_ID ( TAX_ID, TAX_ID_DISPLAY_DESCR, PROVIDER_SEQ_NUM, REGISTERED_NAME, REGISTERED_NAME_UPPER_CASE, EFF_DATE, EXP_DATE, W9_SENT_DATE, W9_RECEIVED_DATE, REPORT_1099_FLAG, CITY_NAME, ADDRESS_LINE1, ADDRESS_LINE2, STATE_CODE, ZIP_CODE, ZIP_CODE_EXT, UPDATE_DATE, UPDATE_NUM, UPDATE_USER, ADDRESS_LINE3, ADDRESS_LINE4, COUNTRY_CODE, FOREIGN_ADDRESS_FLAG ) Values ( :TaxID, :TaxIDDisplayDescr, :ProviderSeqNum, :RegisteredName, :RegisteredNameUpperCase, :EffDate, :ExpDate, :W9SentDate, :W9ReceivedDate, :Report1099Flag, :CityName, :AddressLine1, :AddressLine2, :StateCode, :ZipCode, :ZipCodeExt, :UpdateDate, :UpdateNum, :UpdateUser, :AddressLine3, :AddressLine4, :CountryCode, :ForeignAddressFlag)
```


## Operations and processes
- [Maintain provider tax ID and sync TIN contact](../operations/maintain-provider-tax-id.md)

## Business rules
- [BR-011: TIN values must be nine numeric digits and unique](../business-rules.md#br-011-tin-values-must-be-nine-numeric-digits-and-unique)
- [BR-012: Only one primary TIN is allowed per provider](../business-rules.md#br-012-only-one-primary-tin-is-allowed-per-provider)

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

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