This function returns the ID of the current request within the current session.
Transact-SQL Syntax Conventions
smallint
To find exact information about the current session, use @@SPID. For exact information about the current request, use CURRENT_REQUEST_ID().
[@@SPID (Transact-SQL)](../../t-sql/functions/spid-transact-sql.md)