Enhance documentation on FAST_FORWARD cursor behavior - #10369
Enhance documentation on FAST_FORWARD cursor behavior#10369HugoKornelis wants to merge 1 commit into
Conversation
Clarified behavior of FAST_FORWARD cursors and their runtime choices. Added a link for additional background on SQL Server fast-forward server cursors.
|
@HugoKornelis : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
@HugoKornelis : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
Learn Build status updates of commit a35f004: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
There was a problem hiding this comment.
Pull request overview
This PR clarifies how FAST_FORWARD cursors can be implemented by SQL Server and highlights that the implementation choice is made at execution time, which can affect visibility of concurrent changes. It also adds an external reference for additional background.
Changes:
- Added guidance that
FAST_FORWARDcan be implemented as eitherSTATICorDYNAMIC, and that the choice can change between executions. - Added an external link to background information on fast-forward server cursors.
| A `FAST_FORWARD` cursor can either behave as a `STATIC` cursor or as a 'DYNAMIC' cursor. This choice is made at run time, depending on estimated costs, and the choice can change between executions. Since this choice affects whether concurrent modifications are visible to the cursor or not, such a run time change might impact your results. If your application requires that concurrent updates are visible, use a `DYNAMIC` or `KEYSET` cursor instead. If your application requires that concurrent updates are not visible, use a `STATIC` cursor instead. | ||
|
|
||
| For some more background, see https://techcommunity.microsoft.com/blog/sqlserver/understanding-sql-server-fast-forward-server-cursors/383556. |
Clarified behavior of FAST_FORWARD cursors and their runtime choices. Added a link for additional background on SQL Server fast-forward server cursors.