Skip to content

Commit a81872e

Browse files
MonicaChencrwestMSFT
authored andcommitted
Update session-context-transact-sql.md
1 parent ac88c7b commit a81872e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/t-sql/functions/session-context-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: SESSION_CONTEXT returns the value of the specified key in the curre
44
author: VanMSFT
55
ms.author: vanto
66
ms.reviewer: derekw, randolphwest
7-
ms.date: 05/27/2025
7+
ms.date: 07/07/2025
88
ms.service: sql
99
ms.subservice: t-sql
1010
ms.topic: reference
@@ -69,7 +69,7 @@ SELECT SESSION_CONTEXT(N'user_id');
6969

7070
| Issue | Date discovered | Status | Date resolved |
7171
| --- | --- | --- | --- |
72-
| An Access Violation (AV) exception might occur with the `SESSION_CONTEXT` function under certain conditions. You might encounter AV exceptions or wrong results when the `SESSION_CONTEXT` function runs within a parallel execution plan when the session is reset for reuse.<br /><br />A fix, which was introduced in [!INCLUDE [sssql19-md](../../includes/sssql19-md.md)] CU 14 to address a wrong results issue with `SESSION_CONTEXT` within parallel plans, was later found to cause AV exceptions under certain conditions.<br /><br />To mitigate this issue, you can enable Trace Flag 11024 as a startup, global, or session trace flag. This trace flag forces `SESSION_CONTEXT` to execute serially, preventing it from participating in parallel query plans.<br /><br />**Applies to:** [!INCLUDE [sssql19-md](../../includes/sssql19-md.md)] CU 14 and later versions. | January 2022 | Has workaround | |
72+
| An Access Violation (AV) exception might occur with the `SESSION_CONTEXT` function under certain conditions. You might encounter AV exceptions or wrong results when the `SESSION_CONTEXT` function runs within a parallel execution plan when the session is reset for reuse.<br /><br />A fix, which was introduced in [!INCLUDE [sssql19-md](../../includes/sssql19-md.md)] CU 14 to address a wrong results issue with `SESSION_CONTEXT` within parallel plans, was later found to cause AV exceptions under certain conditions.<br /><br />To mitigate this issue, you can enable Trace Flag 11042 as a startup, global, or session trace flag. This trace flag forces `SESSION_CONTEXT` to execute serially, preventing it from participating in parallel query plans.<br /><br />**Applies to:** [!INCLUDE [sssql19-md](../../includes/sssql19-md.md)] CU 14 and later versions. | January 2022 | Has workaround | |
7373

7474
## Related content
7575

0 commit comments

Comments
 (0)