---
title: "SQL-MENU-024: Fetch next menu security sequence value"
summary: "Fetch the next menu security key."
status: draft
owner: SAIF documentation team
last_reviewed: 2026-08-17
library: SAIF.Business.Menu
reference_type: package
---

# SQL-MENU-024: Fetch next menu security sequence value

Fetch the next menu security key.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-MENU-024 |
| **Operation type** | Sequence |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsMenuSecurity` |
| **Criteria property** | `CreateSQL` |
| **Lifecycle method** | `BeforeCreate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| *(none)* | N/A | N/A | N/A | This statement has no bound parameters. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_SECURITY](../database-tables.md#menusecurity) | SEQUENCE | `MENU_SECURITY_SEQ.NEXTVAL` |

## Sample SQL

```sql
SELECT MENU_SECURITY_SEQ.NEXTVAL FROM DUAL
```

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

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

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