xp_findnextmsg

(Windows only) Retrieves the next message identifier from the SAP ASE message inbox.

Syntax

xp_findnextmsg @msg_id = @msg_id  output[, type]
	[, unread_only = {true | false}]

Parameters

Examples

Usage

When xp_findnextmsg can find no more messages in the inbox, it returns a status of 1.

xp_deletemail and xp_readmail use the message identifier returned by xp_findnextmsg.

Permissions

By default, only a system administrator can execute xp_findnextmsg. A system administrator can grant this permission to other users.

Related reference
xp_deletemail
xp_readmail