---
title: "SQL-MENU-026: Insert menu security row"
summary: "Insert a menu security row."
status: draft
owner: SAIF documentation team
last_reviewed: 2026-08-17
library: SAIF.Business.Menu
reference_type: package
---

# SQL-MENU-026: Insert menu security row

Insert a menu security row.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:MenuSecuritySeqNum` | Input | Decimal | N/A | Menu-security key. |
| `:MenuItemSeqNum` | Input | Decimal | N/A | Menu item key. |
| `:SecurityGroup` | Input | String | 255 | Item security-group name. |
| `:UserId` | Input | String | 30 | Audit user. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_SECURITY](../database-tables.md#menusecurity) | INSERT | `MENU_SECURITY_SEQ_NUM`, `MENU_ITEM_SEQ_NUM`, `SECURITY_GROUP_TXT` |

## Sample SQL

```sql
INSERT INTO MENU_SECURITY (
  MENU_SECURITY_SEQ_NUM,
  MENU_ITEM_SEQ_NUM,
  SECURITY_GROUP_TXT,
  UPDATE_DATE,
  UPDATE_USER)
VALUES (
  :MenuSecuritySeqNum,
  :MenuItemSeqNum,
  :SecurityGroup,
  SYSDATE,
  :UserId)
```

## Operations and processes
- [Maintain a menu item together with its security-group assignments](../operations/maintain-menu-item-security.md)

## Business rules
- [BR-MENU-001: Optimistic contention on write](../business-rules.md#br-menu-001-optimistic-contention-on-write)

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

## Sources
- `SAIF.Business.Menu\clsMenuSecurity.vb`
