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

# SQL-MENU-028: Update menu security row

Update a menu security row.

## Classification

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

## Parameters

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

## Tables

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

## Sample SQL

```sql
UPDATE MENU_SECURITY
SET
  MENU_ITEM_SEQ_NUM = :MenuItemSeqNum,
  SECURITY_GROUP_TXT = :SecurityGroup,
  UPDATE_DATE = SYSDATE,
  UPDATE_USER = :UserId
WHERE MENU_SECURITY.MENU_SECURITY_SEQ_NUM = :MenuSecuritySeqNum
```

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