---
title: "SQL-036: clsMenuSecurity"
summary: Update statement for clsMenuSecurity.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Menu
reference_type: package
---

# SQL-036: clsMenuSecurity

Updates an existing menu security record in `MENU_SECURITY`. `UPDATE_DATE` is set to `SYSDATE`.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:MenuItemSeqNum` | Input | Decimal** | N/A | Menu item FK bound from `MenuItemSeqNum`. |
| `:SecurityGroup` | Input | String** | 255 | Security group tag bound from `SecurityGroup`. |
| `:UserId` | Input | String** | 30 | Update user bound from `DataPortalInfo.UserID`. |
| `:MenuSecuritySeqNum` | Input | Decimal** | N/A | WHERE key bound from `MenuSecuritySeqNum`. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_SECURITY](../database-tables.md#menu-security) | UPDATE | `MENU_ITEM_SEQ_NUM`, `SECURITY_GROUP_TXT`, `UPDATE_DATE`, `UPDATE_USER` (WHERE `MENU_SECURITY_SEQ_NUM`) |

## 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
- [Menu authorization data lookup](../operations/menu-authorization-data-lookup.md)


## Business rules
- [BR-MNU-02: DML row-count enforcement](../business-rules.md#br-mnu-02-dml-row-count-enforcement)


> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

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