Export (0) Print
Expand All
Expand Minimize

DROP AGGREGATE (Transact-SQL)

Removes a user-defined aggregate function from the current database. User-defined aggregate functions are created by using CREATE AGGREGATE.

Topic link iconTransact-SQL Syntax Conventions


DROP AGGREGATE [ schema_name. ] aggregate_name

schema_name

Is the name of the schema to which the user-defined aggregate function belongs.

aggregate_name

Is the name of the user-defined aggregate function you want to drop.

DROP AGGREGATE does not execute if there are any views, functions, or stored procedures created with schema binding that reference the user-defined aggregate function you want to drop.

To execute DROP AGGREGATE, at a minimum, a user must have ALTER permission on the schema to which the user-defined aggregate belongs, or CONTROL permission on the aggregate.

The following example drops the aggregate Concatenate.

DROP AGGREGATE dbo.Concatenate
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft