SQL Server

CONTEXT_INFO()

Session context information enables applications to set binary values of up to 128 bytes that can be referenced in multiple batches, stored procedures, triggers, or user-defined functions operating on the same session. You can set a session context value by using the SET CONTEXT_INFO statement and retrieve it later by using CONTEXT_INFO() function as in the sample code below.

More on MSDN

Leave a Reply

Your email address will not be published. Required fields are marked *