drop function

Definition

Removes one or more user-defined functions from the current database.

Syntax

drop function{ [ owner_name . ] function_name } [ ,...n ] 

Parameters

Examples

This example drops the bonus function:

drop function bonus

Usage

drop function drops scalar SQL user-defined functions from your current database.

Permissions

Permissions default to the function owner, and are not transferable. Users with the sa and the dbo roles can drop any object by specifying the owner.