CURRENT_REQUEST_ID (Transact-SQL)
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

CURRENT_REQUEST_ID (Transact-SQL)

Returns the ID of the current request within the current session.

Topic link icon Transact-SQL Syntax Conventions


CURRENT_REQUEST_ID()

smallint

To find exact information about the current session and current request, use @@SPID and CURRENT_REQUEST_ID(), respectively.

Show:
© 2016 Microsoft