Skip to content

Commit 2984b47

Browse files
fredericDelaporterwestMSFT
authored andcommitted
DIsambiguate deprecation notice in disallow results from triggers
The `disallow results from triggers` configuration option documentation has a deprecation notice about the ability to return result sets from triggers. But a generic deprecation notice is used, with the wording "this feature". It is unclear whether "this feature" refers to the configuration option or to the feature of returning result sets from triggers. With the sentence "We recommend that you set this value to 1." added after the notice, we can understand that the notice is about the feature, not the option. But still, that is confusing. It appears older versions of the documentation, dating back to MSDN, were more clear: > The ability to return result sets from triggers will be removed in a future version of SQL Server. Avoid returning result sets from triggers in new development work, and plan to modify applications that currently do this. To prevent triggers from returning result sets in SQL Server 2005, set the disallow results from triggers Option to 1. The default setting of this option will be 1 in a future version of SQL Server. (Seen [here](https://stackoverflow.com/a/30915837/1178314).) This change combines the older documentation with the generic deprecation notice.
1 parent 8d7e92a commit 2984b47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/database-engine/configure-windows/disallow-results-from-triggers-server-configuration-option.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ helpviewer_keywords:
1818
Use the **disallow results from triggers** option to control whether triggers return result sets. Triggers that return result sets may cause unexpected behavior in applications that are not designed to work with them.
1919

2020
> [!IMPORTANT]
21-
> [!INCLUDE[ssNoteDepFutureAvoid](../../includes/ssnotedepfutureavoid-md.md)] We recommend that you set this value to 1.
21+
> The ability to return result sets from triggers is deprecated. [!INCLUDE[ssNoteDepFutureAvoid](../../includes/ssnotedepfutureavoid-md.md)] We recommend that you set this value to 1.
2222
2323
When set to 1, the **disallow results from triggers** option is set to ON. The default setting for this option is 0 (OFF). If this option is set to 1 (ON), any attempt by a trigger to return a result set fails, and the user receives the following error message:
2424

0 commit comments

Comments
 (0)