Use the SQL Server Aggregate Editor in a SQL Server physical model to define a user-defined function whose implementation is defined in a class of a .NET Framework assembly.
To define an aggregate in SQL Server
The SQL Server Aggregate Editor opens.
Note: Click New on the toolbar to create a new aggregate. Use the Enter filter text box to filter a very large list of aggregates to quickly locate the one that you want to define.
Displays the aggregate name. You can change the aggregate name in this field.
Specifies the schema for the aggregate. Select a schema from the drop-down list or click the New icon to open the SQL Server Schema Editor and create one.
Specifies the data type of the return value. Select a data type from the drop-down list.
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
Specifies the assembly that binds with the aggregate function. Select an assembly from the drop-down list or click the New icon to open the SQL Server Assembly Editor and create one.
Specifies the name of the class.
Specifies the parameters owned by the aggregate.
Specifies the physical data type of the aggregate parameter. Select a data type from the drop-down list.
The aggregate is defined and the SQL Server Aggregate Editor closes.
Copyright © 2017 erwin Inc.
All rights reserved.
|
|