CLR User-Defined Aggregate Properties Used by the Query Processor

A user-defined aggregate provides the query processor additional information about the properties of the aggregation algorithm. The query optimizer can use these properties (IsInvariantToDuplicates, IsInvariantToNulls, IsInvariantToOrder, and IsNullIfEmpty) to search for more efficient query execution plans. Specify properties as part of the SqlUserDefinedAggregate attribute definition on the type. By default, all of these properties are set to false.

ms131099.note(ko-kr,SQL.90).gif중요:
Incorrectly setting the values of these properties can result in incorrect query results. These properties are not the same as optimizer hints; they affect the plan selected and the results returned by the query.

For a description of the SqlUserDefinedAggregate attribute properties, see Custom Attributes for CLR Routines.

참고 항목

관련 자료

CLR User-Defined Aggregates
Overview of CLR Integration Custom Attributes

도움말 및 정보

SQL Server 2005 지원 받기