Icon DROP FUNCTION

Drops an existing function.

Syntax
DROP FUNCTION <Name>

Usage
Use this statement to drop a function from a database.

Warning Dropping a function can cause other jobs, functions, procedures, views, triggers, constraints, or column defaults to generate an error if they refer to the function being dropped.

Examples
-- The following statement drops the LookupTaxRate function.

DROP FUNCTION "LookupTaxRate"

Required Privileges
The current user must be granted the DROP privilege on the current database in order to execute this statement. Please see the User Security topic for more information.

SQL 2003 Standard Deviations
This statement deviates from the SQL 2003 standard in the following ways:

DeviationDetails
RESTRICT and CASCADEElevateDB does not support the RESTRICT or CASCADE clauses.
Image